elo 0.2.1

Rust crate for calculating player rating based on elo ranking system
Documentation

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, MatchWinner};

fn main() {
    let elo = EloRank { k: 32 };
    let player_a = 1200.0;
    let player_b = 1400.0;
    let winner = MatchWinner::PlayerA;

    let (new_a_ranking, new_b_ranking) = elo.calculate(player_a, player_b, winner);
}