rust-elo 0.1.0

Rust crate for calculating players ratings based on elo ranking system
Documentation
  • Coverage
  • 0%
    0 out of 8 items documented0 out of 3 items with examples
  • Size
  • Source code size: 4.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.44 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ivpusic/rust-elo
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ivpusic
rust-elo-0.1.0 has been yanked.

rust-elo

Rust crate for calculating players ratings based on elo ranking system.

Installation

[dependencies]
rust-elo = "0.1.0"

Example usage

use crate::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 (player_a_new_ranking, player_b_new_ranking) = elo.calculate(player_a, player_b, winner);
}