ELO rating system in the D programming language
D
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
source
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

elo-rating-d Build Status Coverage Status

Simple implementation of the famous ELO Rating formular written in the D programming language.

Tested with dmd >=2.063.2. This project is a dub package

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.