Browse Source

update

main
fdai4581 2 years ago
parent
commit
47cdfb7a7a
  1. 10
      src/main/java/BattleShip/GridGUI.java

10
src/main/java/BattleShip/GridGUI.java

@ -1,12 +1,22 @@
package BattleShip; package BattleShip;
import java.util.ArrayList;
public class GridGUI { public class GridGUI {
ArrayList<BSButton> buttons = new ArrayList<BSButton>();
ArrayList<Ship> allShips = new ArrayList<Ship>();
int[] testLocations; int[] testLocations;
int numOfGuesses = 0; int numOfGuesses = 0;
int rows; int rows;
int columns; 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) { public GridGUI(int r, int c) {
rows = r; rows = r;
columns = c; columns = c;

Loading…
Cancel
Save