Change score accuracy grading logic to be inclusive

This commit is contained in:
Salman Ahmed 2022-04-26 04:55:27 +03:00
parent f958010d29
commit 7d32490198
1 changed files with 4 additions and 4 deletions

View File

@ -375,13 +375,13 @@ private ScoreRank rankFrom(double acc)
{
if (acc == 1)
return ScoreRank.X;
if (acc > 0.95)
if (acc >= 0.95)
return ScoreRank.S;
if (acc > 0.9)
if (acc >= 0.9)
return ScoreRank.A;
if (acc > 0.8)
if (acc >= 0.8)
return ScoreRank.B;
if (acc > 0.7)
if (acc >= 0.7)
return ScoreRank.C;
return ScoreRank.D;