Skip to content

FigBug/Multiplayer-ELO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

$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");