diff --git a/src/main/java/src/TicTacToeGame.java b/src/main/java/src/TicTacToeGame.java index 1814562..b86001f 100644 --- a/src/main/java/src/TicTacToeGame.java +++ b/src/main/java/src/TicTacToeGame.java @@ -96,6 +96,18 @@ public class TicTacToeGame implements ActionListener { { xWin(0, 3, 6); } + else if ((bton[1].getText() == "X") && (bton[4].getText() == "X") && (bton[7].getText() == "X")) + { + xWin(1, 4, 7); + } + else if ((bton[2].getText() == "X") && (bton[4].getText() == "X") && (bton[6].getText() == "X")) + { + xWin(2, 4, 6); + } + else if ((bton[2].getText() == "X") && (bton[5].getText() == "X") && (bton[8].getText() == "X")) + { + xWin(2, 5, 8); + } }