mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix infinite loop
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user