Closed wolfbiter closed 9 years ago
TODO:
var Elo = require('arpad');
var uscf = {
default: 32,
2100: 24,
2400: 16
};
var elo = new Elo(uscf, 100);
var alice = 2090;
var bob = 2700;
var odds_alice_wins = elo.expectedScore(alice, bob);
console.log("The odds of Alice winning are about:", odds_alice_wins); // ~2.9%
alice = elo.newRating(odds_alice_wins, 1.0, alice);
console.log("Alice's new rating after she won:", alice); // 2121
odds_alice_wins = elo.expectedScore(alice, bob);
console.log("The odds of Alice winning again are about:", odds_alice_wins); // ~3.4%
alice = elo.newRating(odds_alice_wins, 1.0, alice);
console.log("Alice's new rating if she won again:", alice); // 2144
email from joel: