Tags Archives

You are currently viewing all posts tagged with lol.

PHP class to calculate a Team based ELO Rating System for 5 vs 5.

This is heavily inspired on:

  • Heroes of Newerth
  • League of Legends
  • DotA 2

The use of this class is quite simple.
You can find the code over at github which has a usage example. You can find a demo here.

But simply, this takes two team arrays, with a mandatory elo column.
The class will then calculate both team averages, win rate probabilitys.
And when you execute the calculate function it will return the same two arrays with two new columns, containing the ‘gain’ and ‘loss’ points for each case.
You can use them as you wish.