From 0bb7d4aa0ed184d88b2ca5cbcfd5db61742024c0 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 22 Jan 2021 20:55:02 -0500 Subject: [PATCH] Fix --- commands/games-mp/nim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/nim.js b/commands/games-mp/nim.js index e6a412e0..8b1a59dc 100644 --- a/commands/games-mp/nim.js +++ b/commands/games-mp/nim.js @@ -191,7 +191,7 @@ module.exports = class NimCommand extends Command { if (row === 0) clearRows++; else unclearRows.push(row); } - if (clearRows === board.length - 1) { + if (unclearRows.length === 2) { const amount = board[unclearRows[0]] - 1; board[unclearRows[0]] -= amount; return [unclearRows[0], amount];