diff --git a/src/main/java/src/TicTacToeGame.java b/src/main/java/src/TicTacToeGame.java index ea213a1..8613662 100644 --- a/src/main/java/src/TicTacToeGame.java +++ b/src/main/java/src/TicTacToeGame.java @@ -132,6 +132,12 @@ public class TicTacToeGame implements ActionListener { { oWin(1, 4, 7); } + + else if ((bton[2].getText() == "O") && (bton[4].getText() == "O") && (bton[6].getText() == "O")) + { + oWin(2, 4, 6); + } + } //method if player 0 wins private void oWin(int i, int i1, int i2) {