From de2e54110e1009ebfe269d430b7d18eb94a86101 Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Tue, 7 Feb 2023 22:18:25 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/GridGUI.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index 5d2d702..8edf0cf 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -32,7 +32,14 @@ public class GridGUI extends JPanel { rows = r; columns = c; } + public void build() { + allShips.add(destroyer); + allShips.add(cruiser); + allShips.add(submarine); + allShips.add(battleship); + allShips.add(aircraftCarrier); + } public void setShipLocations() {