mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Fix
This commit is contained in:
@@ -210,7 +210,7 @@ module.exports = class NimCommand extends Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const randomRow = Math.floor(Math.random() * board.length);
|
const randomRow = Math.floor(Math.random() * board.length);
|
||||||
const amount = board[randomRow] - 1;
|
const amount = board[randomRow];
|
||||||
board[randomRow] -= amount;
|
board[randomRow] -= amount;
|
||||||
return [randomRow, amount];
|
return [randomRow, amount];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user