Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivpusic/rust-elo

Rust crate for calculating player rating based on elo ranking system
https://github.com/ivpusic/rust-elo

crate elo elo-rating rust rust-lang

Last synced: 2 months ago
JSON representation

Rust crate for calculating player rating based on elo ranking system

Awesome Lists containing this project

README

        

# rust-elo

[![Build Status](https://travis-ci.org/ivpusic/rust-elo.svg?branch=master)](https://travis-ci.org/ivpusic/rust-elo)

Rust crate for calculating player rating based on elo ranking system

## Installation

Add to your `Cargo.toml`

```bash
[dependencies]
elo = "0.2.1"
```

## Example usage

```rust
extern crate elo;

use elo::EloRank;

fn main() {
let elo = EloRank { k: 32 };
let winner = 1200.0;
let looser = 1400.0;

let (winner_new_score, looser_new_score) = elo.calculate(winner, looser);
}
```