mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
Fix ratings calculator
This commit is contained in:
@@ -67,7 +67,7 @@ export const getNewRating = (
|
||||
result: 1 | 0 | 0.5,
|
||||
kFactor: number,
|
||||
) => {
|
||||
const differenceInElo = clamp(opponentRating - rating, -400, 400);
|
||||
const differenceInElo = clamp(opponentRating - rating, -400, Infinity);
|
||||
const tableRow = (differenceToProbability.find(
|
||||
([start, end]) =>
|
||||
Math.abs(differenceInElo) >= start && Math.abs(differenceInElo) <= end,
|
||||
|
||||
Reference in New Issue
Block a user