This commit is contained in:
Dragon Fire
2021-01-24 10:05:50 -05:00
parent 23ee777ba9
commit 6e46eb5884
+1 -1
View File
@@ -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}`);