From 14169deb1c392d9ec98b8de1c4fbc1eb50ce4b5c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 9 Apr 2020 17:42:35 -0400 Subject: [PATCH] Fix --- commands/games-mp/dots-and-boxes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/games-mp/dots-and-boxes.js b/commands/games-mp/dots-and-boxes.js index 653f26b5..b2d2d2c2 100644 --- a/commands/games-mp/dots-and-boxes.js +++ b/commands/games-mp/dots-and-boxes.js @@ -117,9 +117,9 @@ module.exports = class DotsAndBoxesCommand extends Command { calcSquare(num, taken) { return taken.includes(`${num}-${num + 1}`) - && taken.includes(`${num}-${num + 5}`) - && taken.includes(`${num + 1}-${num + 1 + 5}`) - && taken.includes(`${num + 5}-${num + 1 + 5}`); + && taken.includes(`${num}-${num - 5}`) + && taken.includes(`${(num + 1) - 5}-${num + 1}`) + && taken.includes(`${num - 5}-${(num - 5) + 1}`); } calcNewSquare(taken, owned) {