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() {
if (playerID == 0) {
playerID = ttt.playerID;
ttt.endTurn();
setEnabled(false);
ttt.endTurn();
repaint();
}
}

Loading…
Cancel
Save