diff --git a/src/main/java/src/TicTacToeGame.java b/src/main/java/src/TicTacToeGame.java index e2ac040..0278fe7 100644 --- a/src/main/java/src/TicTacToeGame.java +++ b/src/main/java/src/TicTacToeGame.java @@ -145,8 +145,9 @@ public class TicTacToeGame implements ActionListener { else if ((bton[6].getText() == "O") && (bton[7].getText() == "O") && (bton[8].getText() == "O")) { oWin(6, 7, 8); - } - else if ((bton[3].getText()== "O") && (bton[4].getText() == "O") && (bton[5].getText() == "O")) + } else if (chance_flag==9) { + textfield.setText("Game Draw :)"); + } else if ((bton[3].getText()== "O") && (bton[4].getText() == "O") && (bton[5].getText() == "O")) oWin(3,4,5); }