Giter Site home page Giter Site logo

elo's Introduction

Elo

Elo implementation written in Rust with bracket configurable K values and differing weights for Best of N series.

Building

This project uses Rust nightly, Rust can be installed with rustup.

> git clone https://github.com/Eliasin/elo.git
> cd elo
> cargo build --release

Usage

USAGE:
    elo [OPTIONS] --matches <FILE> --output <FILE> --standings <FILE>

matches should be the path to a file containing a JSON representing a list of

{
    winner: String,
    loser: String,
    series: SeriesKind
}

where winner and loser are the names of the winning and losing teams where SeriesKind can be the string "Bo1", "Bo3" or "Bo5"

standings should be the path to a file containing a JSON representing team standings as keys from name to rating

{
	"team_name1": number,	
	"team_name2": number,
	...
}

where there can be any number of team, elo pairs

Configuration

The configuration file determines the weights for Best of N series and determines the K values for different elo brackets. It is in config.json by default but this can be overriden with the --config or -c flag.

The configuration file should be a JSON representing

{
	"bo1_score": number,
	"bo3_score": number,
	"bo5_score": number,
	"k_brackets": [
		{
			"start": number,
			"k": number
		},
		{
			"start": number,
			"k": number
		},
		...
	]
}

elo's People

Contributors

eliasin 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.