Browse Source

Added booleans for when the player presses a button

master
TRC9696 2 years ago
parent
commit
032bc4166d
  1. 12
      src/main/java/game/StartTicTacToeGame.java

12
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);
}

Loading…
Cancel
Save