Description

ELO rating system in D

Package Information

Version1.0.0 (2014-Feb-22)
Homepage https://github.com/Extrawurst/elo-rating-d
Repository https://github.com/Extrawurst/elo-rating-d
LicenseMIT
CopyrightCopyright © 2014, Stephan Dilly
AuthorsStephan Dilly
Registered byExtrawurst
Dependencies none

Installation

To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

Readme

elo-rating-d

Build Status

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.

Available versions

1.0.0 0.0.2 ~master