From 032bc4166defa7d96202c9ef0da92ae25236e9e1 Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 16:44:17 +0100 Subject: [PATCH] Added booleans for when the player presses a button --- src/main/java/game/StartTicTacToeGame.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index f789fe4..ceedd0f 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -25,6 +25,16 @@ public class StartTicTacToeGame implements ActionListener{ static JButton button9 = new JButton(); static JButton backButton = new JButton(); + boolean player1buttonPressed = false; + boolean player1button2Pressed = false; + boolean player1button3Pressed = false; + boolean player1button4Pressed = false; + boolean player1button5Pressed = false; + boolean player1button6Pressed = false; + boolean player1button7Pressed = false; + boolean player1button8Pressed = false; + boolean player1button9Pressed = false; + static JLabel label = new JLabel(); @@ -107,6 +117,8 @@ public class StartTicTacToeGame implements ActionListener{ backButton.setFont(new Font("arial", Font.PLAIN, 16)); backButton.setText("Zurück"); gui.Frame.add(backButton); + + }