https://github.com/extrawurst/elo-rating-d
ELO rating system in the D programming language
https://github.com/extrawurst/elo-rating-d
Last synced: 6 months ago
JSON representation
ELO rating system in the D programming language
- Host: GitHub
- URL: https://github.com/extrawurst/elo-rating-d
- Owner: extrawurst
- License: mit
- Created: 2013-11-03T18:12:51.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-10-11T00:12:54.000Z (over 10 years ago)
- Last Synced: 2025-01-25T21:13:02.817Z (over 1 year ago)
- Language: D
- Homepage:
- Size: 238 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
elo-rating-d [](https://travis-ci.org/Extrawurst/elo-rating-d) [](https://coveralls.io/r/Extrawurst/elo-rating-d)
============
Simple implementation of the famous [ELO Rating formular](https://en.wikipedia.org/wiki/Elo_rating_system) written in the [D programming language](http://dlang.org/).
Tested with dmd >=2.063.2.
This project is a [dub package](http://code.dlang.org/packages/elo-rating-d)
usage:
============
add the elo-rating-d package to your dub dependancies and run ratings like this:
```
import elo.rating;
int MyRating = 1000;
int OpponentRating = 1000;
auto MyNewRating = RatingSystem.GetNewRating(MyRating,OpponentRating,RatingSystem.Result.Win);
```
Optionally you can specify the kFactor to be used as a 4th parameter. It is 30 by default.