small fix v2

This commit is contained in:
Ticho Hidding
2025-10-06 15:03:37 +02:00
parent 9144cb453e
commit b8488c7289

View File

@@ -48,11 +48,9 @@ public final class TicTacToeLayer extends Layer {
playerMoveQueue.put(new Game.Move(cell, 'O')); playerMoveQueue.put(new Game.Move(cell, 'O'));
} }
} else { } else {
if (ticTacToe.getCurrentTurn() == 0) { if (information.isPlayerHuman()[0] && currentPlayerMove != Game.EMPTY) {
if (information.isPlayerHuman()[0] && currentPlayerMove != Game.EMPTY) { playerMoveQueue.put(new Game.Move(cell, currentPlayerMove));
playerMoveQueue.put(new Game.Move(cell, currentPlayerMove)); }
}
}
} }
} catch (InterruptedException e) { } catch (InterruptedException e) {
return; return;
@@ -228,6 +226,7 @@ public final class TicTacToeLayer extends Layer {
} }
} }
} catch (InterruptedException exception) { } catch (InterruptedException exception) {
System.out.println(exception.getMessage());
return; return;
} }
} }