From 6e4ee9ab7d02ee4254a0b57de3ab8044ac415176 Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 16:48:24 +0100 Subject: [PATCH] Added booleans for the player turn --- src/main/java/game/StartTicTacToeGame.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index c4b1c18..fe48596 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -45,6 +45,9 @@ public class StartTicTacToeGame implements ActionListener{ boolean player2button8Pressed = false; boolean player2button9Pressed = false; + boolean player1Turn = true; + boolean player2Turn = false; + static JLabel label = new JLabel();