Browse Source

Added booleans for when the second player presses a button

master
TRC9696 2 years ago
parent
commit
482def6ce4
  1. 10
      src/main/java/game/StartTicTacToeGame.java

10
src/main/java/game/StartTicTacToeGame.java

@ -35,6 +35,16 @@ public class StartTicTacToeGame implements ActionListener{
boolean player1button8Pressed = false; boolean player1button8Pressed = false;
boolean player1button9Pressed = 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(); static JLabel label = new JLabel();

Loading…
Cancel
Save