From b8488c72899b5df7529dde2f530283c529a1bf39 Mon Sep 17 00:00:00 2001 From: Ticho Hidding Date: Mon, 6 Oct 2025 15:03:37 +0200 Subject: [PATCH] small fix v2 --- .../org/toop/app/layer/layers/game/TicTacToeLayer.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/toop/app/layer/layers/game/TicTacToeLayer.java b/app/src/main/java/org/toop/app/layer/layers/game/TicTacToeLayer.java index 63ff1ed..0f9d52e 100644 --- a/app/src/main/java/org/toop/app/layer/layers/game/TicTacToeLayer.java +++ b/app/src/main/java/org/toop/app/layer/layers/game/TicTacToeLayer.java @@ -48,11 +48,9 @@ public final class TicTacToeLayer extends Layer { playerMoveQueue.put(new Game.Move(cell, 'O')); } } else { - if (ticTacToe.getCurrentTurn() == 0) { - if (information.isPlayerHuman()[0] && currentPlayerMove != Game.EMPTY) { - playerMoveQueue.put(new Game.Move(cell, currentPlayerMove)); - } - } + if (information.isPlayerHuman()[0] && currentPlayerMove != Game.EMPTY) { + playerMoveQueue.put(new Game.Move(cell, currentPlayerMove)); + } } } catch (InterruptedException e) { return; @@ -228,6 +226,7 @@ public final class TicTacToeLayer extends Layer { } } } catch (InterruptedException exception) { + System.out.println(exception.getMessage()); return; } }