Add comment explaining why 13 is being used, not 11.

This commit is contained in:
2026-05-21 14:23:27 -07:00
parent 447182c3bf
commit b3e955b38a
+1
View File
@@ -424,6 +424,7 @@ List<int> gameTurn(List<int> board, int spot) {
((boolTopPlayerTurn && spot >= 7) || (!boolTopPlayerTurn && spot <= 6))) {
// Spot 00 steals 11, 01 steals 10, ... 05 steals 06.
// This is a function of (spot_to_check = 11 - spot)
// Changed to 14 spots, so now using 13 rather than 11.
int spotToCheck = 13 - spot;
int theft = board[spotToCheck % 14];
if (boolTopPlayerTurn) {