refactor - removed some magic numbers

This commit is contained in:
MeirGavish
2025-06-29 11:58:54 +03:00
parent 1c65652f7b
commit 8bbe707dab
4 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ u8 card_get_value(Card *card)
}
else
{
return card->rank + 2; // 2-10 are worth their rank + 2 (because rank starts at 0)
return card->rank + RANK_OFFSET; // 2-10 are worth their rank + RANK_OFFSET
}
return 0; // Should never reach here, but just in case