Browse Source

Bugfix unclickable cell

feature_TicTacToe_Playfield
kfkama 3 years ago
parent
commit
3efe0a8d3e
  1. 2
      src/main/java/TicTacToe/Cell.java

2
src/main/java/TicTacToe/Cell.java

@ -28,8 +28,8 @@ public class Cell extends JButton {
protected void OnMouseClick() { protected void OnMouseClick() {
if (playerID == 0) { if (playerID == 0) {
playerID = ttt.playerID; playerID = ttt.playerID;
ttt.endTurn();
setEnabled(false); setEnabled(false);
ttt.endTurn();
repaint(); repaint();
} }
} }

Loading…
Cancel
Save