mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Fix
This commit is contained in:
@@ -122,7 +122,7 @@ module.exports = class DomineeringCommand extends Command {
|
||||
if (userTurn && !board[i + 1]) continue;
|
||||
if (!userTurn && board[i][j + 1] === undefined) continue;
|
||||
if (board[userTurn ? i + 1 : i][userTurn ? j : j + 1]) continue;
|
||||
possibleMoves.push(`${i},${j}`);
|
||||
possibleMoves.push(`${j},${i}`);
|
||||
}
|
||||
}
|
||||
return possibleMoves;
|
||||
|
||||
Reference in New Issue
Block a user