ELO rating system in D
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
Simple implementation of the famous ELO Rating formular (https://en.wikipedia.org/wiki/Eloratingsystem) in the D programming language.
Tested with dmd 2.063.2. This project is a dub package.
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.
- Registered by Extrawurst
- 0.0.2 released 8 years ago
- Copyright © 2013, Stephan Dilly