mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
small fix v2
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user