elo-rating-d 1.0.0
ELO rating system in D
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
elo-rating-d
Simple implementation of the famous ELO Rating formular (https://en.wikipedia.org/wiki/Eloratingsystem) 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.
- Registered by Extrawurst
- 1.0.0 released 10 years ago
- Extrawurst/elo-rating-d
- github.com/Extrawurst/elo-rating-d
- MIT
- Copyright © 2014, Stephan Dilly
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.0 2014-Feb-22 0.0.2 2013-Nov-03 ~master 2015-Oct-11 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
279 downloads total
-
- Score:
- 0.8
- Short URL:
- elo-rating-d.dub.pm