From 47cdfb7a7a76226b40865ec8309132ee13868b6c Mon Sep 17 00:00:00 2001 From: fdai4581 Date: Mon, 6 Feb 2023 21:13:58 +0100 Subject: [PATCH] update --- src/main/java/BattleShip/GridGUI.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index ba04ba2..cfb674e 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -1,12 +1,22 @@ package BattleShip; +import java.util.ArrayList; + public class GridGUI { + ArrayList buttons = new ArrayList(); + ArrayList allShips = new ArrayList(); int[] testLocations; int numOfGuesses = 0; int rows; int columns; + Ship destroyer = new Ship(2, "destroyer"); + Ship cruiser = new Ship(3, "cruiser"); + Ship submarine = new Ship(3, "submarine"); + Ship battleship = new Ship(4, "battleship"); + Ship aircraftCarrier = new Ship(5, "aircraft carrier"); + public GridGUI(int r, int c) { rows = r; columns = c;