Fix infinite loop

This commit is contained in:
Dragon Fire
2021-01-22 21:31:49 -05:00
parent b6154b3681
commit 200c556a51
+1
View File
@@ -202,6 +202,7 @@ module.exports = class NimCommand extends Command {
let finalValues = null;
while (keepGoing) {
if (board[i] === 0) {
i++;
continue;
} else {
board[i] -= 1;