diff --git a/src/main/java/src/TicTacToeGame.java b/src/main/java/src/TicTacToeGame.java index 2108c2f..9251c71 100644 --- a/src/main/java/src/TicTacToeGame.java +++ b/src/main/java/src/TicTacToeGame.java @@ -120,6 +120,10 @@ public class TicTacToeGame implements ActionListener { { oWin(0, 1, 2); } + else if ((bton[0].getText() == "O") && (bton[3].getText() == "O") && (bton[6].getText() == "O")) + { + oWin(0, 3, 6); + } } //method if player 0 wins private void oWin(int i, int i1, int i2) {