An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

elo-rating-d [![Build Status](https://api.travis-ci.org/Extrawurst/elo-rating-d.svg)](https://travis-ci.org/Extrawurst/elo-rating-d) [![Coverage Status](https://coveralls.io/repos/Extrawurst/elo-rating-d/badge.svg)](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.