Travis build: 11

This commit is contained in:
30secondsofcode
2018-06-23 07:22:21 +00:00
parent 70f9d37649
commit 0f6d4dba24
3 changed files with 13 additions and 15 deletions

View File

@ -17,7 +17,7 @@ const elo = ([...ratings], kFactor = 32, selfRating) => {
(selfRating || rating) + kFactor * (i - expectedScore(i ? a : b, i ? b : a));
if (ratings.length === 2) {
return [newRating(a, 1), newRating(b, 0)];
}
}
for (let i = 0, len = ratings.length; i < len; i++) {
let j = i;
while (j < len - 1) {