From 50d6952457adf206b737b95eefc9dd9086ff0935 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Tue, 7 Feb 2023 22:20:17 +0100 Subject: [PATCH] refactoring: --- src/main/java/BattleShip/GridGUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index f825fc6..f4bc7ff 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -40,7 +40,7 @@ public class GridGUI extends JPanel { allShips.add(battleship); allShips.add(aircraftCarrier); - for(int i = 1; i < (rows * columns); i++) { + for(int i = 0; i < (rows * columns); i++) { BSButton b = new BSButton(); b.setEnabled(false); b.setGridLocation(i);