#rating #player #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

#17 in #ranking

Download history 22/week @ 2024-09-07 73/week @ 2024-09-14 79/week @ 2024-09-21 36/week @ 2024-09-28 1/week @ 2024-10-05 3/week @ 2024-10-12 16/week @ 2024-10-19 29/week @ 2024-10-26 57/week @ 2024-11-02 16/week @ 2024-11-09 14/week @ 2024-11-16 2/week @ 2024-11-23 14/week @ 2024-11-30 48/week @ 2024-12-07 46/week @ 2024-12-14

112 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