Skip to content

Rust crate for calculating player rating based on elo ranking system

License

Notifications You must be signed in to change notification settings

ivpusic/rust-elo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rust crate for calculating player rating based on elo ranking system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages