best sys scoring

This commit is contained in:
cyjullien1
2025-01-08 14:14:36 +01:00
parent 6164c1cd5e
commit 1be5c7a12c

View File

@@ -951,13 +951,17 @@ unsigned int scoreCalculator(score *score_user, bool win)
unsigned int scoreCalculatorCyp(score *score_user, bool win)
{
unsigned short int result = 0; //plus grand nombre
unsigned short int result = 10000; //plus grand nombre
int time = score_user->after - score_user->before;
result += (score_user->move_box + score_user->move_player) * time;
result -= (score_user->move_box + score_user->move_player) * time;
if (!win)
{
result /= 50;
}
if(result <0)
{
result=0;
}
return result;
}