mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 05:49:49 +02:00
Fix
This commit is contained in:
@@ -191,7 +191,7 @@ module.exports = class NimCommand extends Command {
|
|||||||
if (row === 0) clearRows++;
|
if (row === 0) clearRows++;
|
||||||
else unclearRows.push(row);
|
else unclearRows.push(row);
|
||||||
}
|
}
|
||||||
if (clearRows === board.length - 1) {
|
if (unclearRows.length === 2) {
|
||||||
const amount = board[unclearRows[0]] - 1;
|
const amount = board[unclearRows[0]] - 1;
|
||||||
board[unclearRows[0]] -= amount;
|
board[unclearRows[0]] -= amount;
|
||||||
return [unclearRows[0], amount];
|
return [unclearRows[0], amount];
|
||||||
|
|||||||
Reference in New Issue
Block a user