Browse Source

Bugfix turn 8 draw

feature_TicTacToe_Playfield
kfkama 3 years ago
parent
commit
3ca691f2a2
  1. 2
      src/main/java/TicTacToe/TicTacToeGame.java

2
src/main/java/TicTacToe/TicTacToeGame.java

@ -88,7 +88,7 @@ public class TicTacToeGame extends JPanel {
} }
turns++; turns++;
if(turns >= playFieldSize) {
if(turns > playFieldSize) {
JOptionPane.showMessageDialog(getParent(),"Draw!"); JOptionPane.showMessageDialog(getParent(),"Draw!");
scoreboard.addPoint(0); scoreboard.addPoint(0);
resetGame(); resetGame();

Loading…
Cancel
Save