diff --git a/solutions/java/src/tictactoe/Game.java b/solutions/java/src/tictactoe/Game.java index 7c2ecdfd..a2eb2166 100644 --- a/solutions/java/src/tictactoe/Game.java +++ b/solutions/java/src/tictactoe/Game.java @@ -11,8 +11,7 @@ public Game(Player player1, Player player2, int size) { this.players = new Player[]{player1, player2}; this.status = GameStatus.IN_PROGRESS; } - - public synchronized boolean playMove(int row, int col) { + public boolean playMove(int row, int col) { if (status != GameStatus.IN_PROGRESS) { throw new IllegalStateException("Game already finished."); } @@ -37,7 +36,7 @@ public synchronized boolean playMove(int row, int col) { return true; } - public synchronized void reset() { + public void reset() { board.reset(); currentPlayerIndex = 0; status = GameStatus.IN_PROGRESS;