mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Fix
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user