Elo Rating System
The Elo rating system is a method for calculating the relative skill levels of players in competitor-versus-competitor games such as chess.
Import the library file
<script type="text/javascript" src="src/elo.js"></script>
For example
<script>
/*
Where the arguments are
A = Current rating for player A
B = Current rating for player B
C = Score for player A
D = Score for player B
*/
var A = 1600;
var B = 1200;
var C = 0.5;
var D = 0.5;
var player = new Elo(A, B, C, D);
</script>
Jorge Chavez https://github.com/jorgechavz
The MIT License (MIT)
See LICENCE for details.