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

https://github.com/figbug/multiplayer-elo

Multiplayer ELO calculations
https://github.com/figbug/multiplayer-elo

Last synced: 9 months ago
JSON representation

Multiplayer ELO calculations

Awesome Lists containing this project

README

          

# Multiplayer-ELO
Multiplayer ELO calculations

Based on the algorithm / code presented here: http://elo-norsak.rhcloud.com/index.php

Simple way to calculate ELO for multiplayer games. Currently C, C#, C++, Java, Objective-C, Python, PHP, Swift and Delphi versions. Slowly doing more.

Usage:

```php
$match = new ELOMatch();
$match->addPlayer("Joe", 1, 1600);
$match->addPlayer("Sam", 2, 1550);
$match->addPlayer("Ted", 3, 1520);
$match->addPlayer("Rex", 4, 1439);
$match->calculateELOs();
$match->getELO("Joe");
$match->getELO("Sam");
$match->getELO("Ted");
$match->getELO("Rex");
```