mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -117,7 +117,7 @@ module.exports = class DomineeringCommand extends Command {
|
||||
possibleMoves(board, userTurn) {
|
||||
const possibleMoves = [];
|
||||
for (let i = 0; i < board.length; i++) {
|
||||
for (let j = 0; j < board[i].length; i++) {
|
||||
for (let j = 0; j < board[i].length; j++) {
|
||||
if (board[i][j]) continue;
|
||||
if (board[userTurn ? i + 1 : i][userTurn ? j : j + 1]) continue;
|
||||
possibleMoves.push(`${i},${j}`);
|
||||
|
||||
Reference in New Issue
Block a user