diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index b1b4a38..d94c26a 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -104,7 +104,11 @@ public class GridGUI { cell.setBackground(Color.red); } } - + for(Ship sh : allShips) { + if(!sh.isKilled()) { + gameOver = false; + } + } } } }