Crates.io | rust-elo-multiplayer |
lib.rs | rust-elo-multiplayer |
version | 0.1.2 |
source | src |
created_at | 2022-10-20 08:43:01.318706 |
updated_at | 2022-10-20 08:54:11.132774 |
description | Calculate ELO with multiple players |
homepage | https://github.com/mattiasmucherie/rust_tutorial |
repository | https://github.com/mattiasmucherie/rust_tutorial |
max_upload_size | |
id | 692238 |
size | 5,676 |
Rust crate for calculating multiplayer rating based on elo ranking system
use rust_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();
}