Browse Source

Tic Tac Toe updating method chek

remotes/origin/develop
fdai6040 2 years ago
parent
commit
21b222f388
  1. 6
      src/main/java/src/TicTacToeGame.java

6
src/main/java/src/TicTacToeGame.java

@ -91,6 +91,12 @@ public class TicTacToeGame implements ActionListener {
{ {
xWin(0, 4, 8); xWin(0, 4, 8);
} }
else if ((bton[0].getText() == "X") && (bton[3].getText() == "X") && (bton[6].getText() == "X"))
{
xWin(0, 3, 6);
}
} }
//method if player X wins //method if player X wins

Loading…
Cancel
Save