elo-multiplayer 0.1.5

Calculate ELO with multiple players
Documentation

elo-multiplayer

Rust crate for calculating multiplayer rating based on elo ranking system

Installation

If you are on Rust 1.62 or higher use cargo add to install the latest version:

cargo add elo-multiplayer

Alternatively, you can add the following to your Cargo.toml file manually:

[dependencies]
elo-multiplayer = "0.1.4"

Example usage

use elo_multiplayer::EloRank;

fn main() {
    let players: Vec<f64> = vec![1000.0, 1000.0, 1000., 1000.0];
    let elo = EloRank { k: 32, players };
    let expected: Vec<f64> = elo.calculate();
}