Browse Source

Added player turn methods

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

12
src/main/java/game/StartTicTacToeGame.java

@ -134,6 +134,18 @@ public class StartTicTacToeGame implements ActionListener{
} }
public void player1Turn() {
player1Turn = true;
player2Turn = false;
}
public void player2Turn() {
player1Turn = false;
player2Turn = true;
}
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {

Loading…
Cancel
Save