This commit is contained in:
Dragon Fire
2020-04-09 17:48:56 -04:00
parent 14169deb1c
commit 05618404b8
+1 -1
View File
@@ -117,7 +117,7 @@ module.exports = class DotsAndBoxesCommand extends Command {
calcSquare(num, taken) {
return taken.includes(`${num}-${num + 1}`)
&& taken.includes(`${num}-${num - 5}`)
&& taken.includes(`${num - 5}-${num}`)
&& taken.includes(`${(num + 1) - 5}-${num + 1}`)
&& taken.includes(`${num - 5}-${(num - 5) + 1}`);
}