Coder Social home page Coder Social logo

klesk's People

Contributors

kjendrzyca avatar mtarnaski-fp avatar patrykwojtasik avatar tarnas14 avatar wojtasik avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tarnas14

klesk's Issues

Add seasons.

It should be possible to add timeboxed seasons to ladders.

Second player validation for addResultHandler.

Example:
/klesk addresult existingladdername +existingwinner nonexistentplayer2

Currently if second player does not exist, nothing happens. Imo error message should be sent to the user.

Create map list.

Ladder should pick random map at the beginning of each seson.

Add validation for joining ladder without user_name field

When sending request without user_name field, Klesk creates matches with one player.

Command: curl -d "text=joinladder test" http://localhost:1666
Result: "Added: undedfined"
ladder.json: {"player2":"patryk","winner":""},{"player2":"tarnas14","winner":""}

display player stats in ladder

make ranking display something like

[ladder `normal` matches played 3/5] 1. prezes 3/0 2. patryk 2/1 3. tarnas14 0/3 etc....

instead of showing all matches

Score is set incorrectly when adding a result

When you add result with command like this:
/klesk addresult +klesk anarki 23:18

and in the ladder.json players are placed in a different order:

{ 
    matches: [ 
        {
            player1: 'anarki', player2: 'klesk' 
        }
    ]
}

then you get stats like this:
[ anarki vs +klesk (23:18) on furious heights]
but should be
[ anarki vs +klesk (18:23) on furious heights]

The best solution would be to fix how the score is saved, not how it is displayed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.