From 3efe0a8d3eb440f62259509427a14d646f9850cd Mon Sep 17 00:00:00 2001 From: kfkama Date: Wed, 16 Feb 2022 15:33:48 +0100 Subject: [PATCH] Bugfix unclickable cell --- src/main/java/TicTacToe/Cell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/TicTacToe/Cell.java b/src/main/java/TicTacToe/Cell.java index a254735..01fd7ab 100644 --- a/src/main/java/TicTacToe/Cell.java +++ b/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(); } }