diff --git a/src/main/java/src/TicTacToeGame.java b/src/main/java/src/TicTacToeGame.java index 4da2ea2..1814562 100644 --- a/src/main/java/src/TicTacToeGame.java +++ b/src/main/java/src/TicTacToeGame.java @@ -91,6 +91,12 @@ public class TicTacToeGame implements ActionListener { { 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