generated from me/template-mit
Add comment explaining why 13 is being used, not 11.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user