Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivpusic/rust-elo
Rust crate for calculating player rating based on elo ranking system
https://github.com/ivpusic/rust-elo
crate elo elo-rating rust rust-lang
Last synced: 2 months ago
JSON representation
Rust crate for calculating player rating based on elo ranking system
- Host: GitHub
- URL: https://github.com/ivpusic/rust-elo
- Owner: ivpusic
- License: mit
- Created: 2019-10-12T23:01:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T21:24:15.000Z (about 5 years ago)
- Last Synced: 2024-09-30T12:04:24.714Z (3 months ago)
- Topics: crate, elo, elo-rating, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-elo
[![Build Status](https://travis-ci.org/ivpusic/rust-elo.svg?branch=master)](https://travis-ci.org/ivpusic/rust-elo)
Rust crate for calculating player rating based on elo ranking system
## Installation
Add to your `Cargo.toml`
```bash
[dependencies]
elo = "0.2.1"
```## Example usage
```rust
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);
}
```