From 482def6ce4a46cee4dea23a3c104dd05c4af9ab4 Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 16:45:18 +0100 Subject: [PATCH] Added booleans for when the second player presses a button --- src/main/java/game/StartTicTacToeGame.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index ceedd0f..c4b1c18 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -35,6 +35,16 @@ public class StartTicTacToeGame implements ActionListener{ boolean player1button8Pressed = false; boolean player1button9Pressed = false; + boolean player2buttonPressed = false; + boolean player2button2Pressed = false; + boolean player2button3Pressed = false; + boolean player2button4Pressed = false; + boolean player2button5Pressed = false; + boolean player2button6Pressed = false; + boolean player2button7Pressed = false; + boolean player2button8Pressed = false; + boolean player2button9Pressed = false; + static JLabel label = new JLabel();