4 releases (2 breaking)
0.3.0 | Oct 15, 2019 |
---|---|
0.2.1 | Oct 12, 2019 |
0.2.0 | Oct 12, 2019 |
0.1.1 | Oct 12, 2019 |
0.1.0 |
|
#15 in #ranking
121 downloads per month
4KB
rust-elo
Rust crate for calculating player rating based on elo ranking system
Installation
Add to your Cargo.toml
[dependencies]
elo = "0.2.1"
Example usage
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);
}