mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user