#player #rating #ranking #calculating #system #language #elo-rank

elo

Rust crate for calculating player rating based on elo ranking system

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 Oct 12, 2019

#15 in #ranking

Download history 6/week @ 2024-07-29 24/week @ 2024-09-09 75/week @ 2024-09-16 75/week @ 2024-09-23 37/week @ 2024-09-30 3/week @ 2024-10-14 17/week @ 2024-10-21 30/week @ 2024-10-28 71/week @ 2024-11-04

121 downloads per month

MIT license

4KB

rust-elo

Build Status

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);
}

No runtime deps