TrueSkill
A purely functional implementation of a TrueSkill-compatible ranking system compatible with your web browser and nodejs.
npm install com.izaakschroeder.trueskill
Usage
Examples can be found in the examples folder.
var //Create TrueSkill instance with default parameters trueSkill = //Create some players players = name: 'Justin' rating: trueSkill name: 'James' rating: trueSkill ; //Play a single match and update the player ratings { //Get the new ratings by creating one player teams for each player newRatings = trueSkill; //Update the player's rating players;} //Show initial ratingsconsole; //Play some games; //James wins; //Justin wins; //James wins; //James wins //Show final ratingsconsole;