Code Monkey home page Code Monkey logo

rate's Introduction

Rate

A Cli-tool for rating players from a file. Supported Algorithms:

Usage

rate path/to/file.csv or path/to/file.json

And you will get prompted with interactive options to select: alt

  • First player key in the file
  • Second player key in the file
  • Result key from the first player perspective in the file
  • Algorithm to use [all, elo, "glicko-1", "glicko-2", "trueskill", "dwz", "ecf"]
  • Output Format [csv, json]
  • How a win is defined in the file Example: 1 or win
  • How a loss is defined in the file Example: 0 or loss
  • How a draw is defined in the file Example: 0.5 or draw

Example

matches.csv

player1 player2 result1 result2 date
John Doe won Lost 12-14-2021
Doe John Draw Draw 12-15-2021
Sam John Lost won 12-16-2021

examples of generated files in /examples

Answers

  • First player key: player1
  • Second player key: player2
  • Result key: result1
  • Algorithm: elo
  • Output Format: csv
  • How a win is defined: won
  • How a loss is defined: Lost
  • How a draw is defined: Draw

Installation

$ pip install rate
$ rate

or

$ py -m pip install rate
$ py -m rate

You might need to run it with winpty if you are on Windows. winpty py -m rate

Contributing

It still needs some work. Please feel free to open an issue or pull request.

rate's People

Contributors

blankalmasry avatar

Watchers

 avatar

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.