chess:programming:rating:conversions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
chess:programming:rating:conversions [2021/12/08 11:51] – [elo to uscf (for Juniors)] peter | chess:programming:rating:conversions [2021/12/08 11:58] (current) – peter | ||
---|---|---|---|
Line 26: | Line 26: | ||
< | < | ||
- | if (elo <= 2000) | ||
- | return 180 + unsigned(0.94 * elo); | ||
- | else | ||
if (elo <= 1886) | if (elo <= 1886) | ||
return unsigned(elo/ | return unsigned(elo/ | ||
+ | else | ||
+ | if (elo <= 2000) | ||
+ | return 180 + unsigned(0.94 * elo); | ||
else | else | ||
return 20 + unsigned(1.02 * elo); | return 20 + unsigned(1.02 * elo); | ||
Line 43: | Line 43: | ||
< | < | ||
if (elo <= 2000) | if (elo <= 2000) | ||
- | return 560 + unsigned(0.74 * elo); | ||
- | else | ||
- | if (elo <= 1944) | ||
return 560 + unsigned(0.74 * elo); | return 560 + unsigned(0.74 * elo); | ||
else | else | ||
Line 56: | Line 53: | ||
< | < | ||
+ | if (uscf > 2060) | ||
+ | return unsigned((uscf - 180) / 0.94); | ||
+ | else | ||
if (uscf > 1945) | if (uscf > 1945) | ||
return unsigned((uscf - 20) / 1.02); | return unsigned((uscf - 20) / 1.02); |
chess/programming/rating/conversions.1638964317.txt.gz · Last modified: 2021/12/08 11:51 by peter