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
- Host: GitHub
- URL: https://github.com/figbug/multiplayer-elo
- Owner: FigBug
- License: bsd-3-clause
- Created: 2015-12-07T05:06:56.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-31T19:51:20.000Z (over 2 years ago)
- Last Synced: 2025-02-07T22:34:54.850Z (11 months ago)
- Language: Pascal
- Size: 25.4 KB
- Stars: 62
- Watchers: 8
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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");
```