Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions solutions/java/src/tictactoe/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand All @@ -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;
Expand Down