Browse Source

update

main
fdai4581 2 years ago
parent
commit
e708788bcf
  1. 8
      src/main/java/BattleShip/GridGUI.java

8
src/main/java/BattleShip/GridGUI.java

@ -74,7 +74,13 @@ public class GridGUI {
} }
public class MyCellListener implements ActionListener { public class MyCellListener implements ActionListener {
public void actionPerformed(ActionEvent a) { public void actionPerformed(ActionEvent a) {
if(!clicked) {
BSButton cell = (BSButton) a.getSource();
Ship s = cell.getCellContents();
boolean killed = false;
numOfGuesses++;
boolean gameOver = true;
}
} }
} }
} }
Loading…
Cancel
Save