Browse Source

refactoring:

main
fdai4581 2 years ago
parent
commit
50d6952457
  1. 2
      src/main/java/BattleShip/GridGUI.java

2
src/main/java/BattleShip/GridGUI.java

@ -40,7 +40,7 @@ public class GridGUI extends JPanel {
allShips.add(battleship); allShips.add(battleship);
allShips.add(aircraftCarrier); allShips.add(aircraftCarrier);
for(int i = 1; i < (rows * columns); i++) {
for(int i = 0; i < (rows * columns); i++) {
BSButton b = new BSButton(); BSButton b = new BSButton();
b.setEnabled(false); b.setEnabled(false);
b.setGridLocation(i); b.setGridLocation(i);

Loading…
Cancel
Save