This commit is contained in:
Dragon Fire
2021-01-22 20:50:57 -05:00
parent 803836a8cd
commit ccebed2554
+1 -1
View File
@@ -210,7 +210,7 @@ module.exports = class NimCommand extends Command {
}
}
const randomRow = Math.floor(Math.random() * board.length);
const amount = board[randomRow] - 1;
const amount = board[randomRow];
board[randomRow] -= amount;
return [randomRow, amount];
}