Browse Source

update

main
fdai4581 2 years ago
parent
commit
40701ac566
  1. 7
      src/main/java/BattleShip/GridGUI.java

7
src/main/java/BattleShip/GridGUI.java

@ -1,5 +1,8 @@
package BattleShip; package BattleShip;
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Random; import java.util.Random;
@ -11,6 +14,10 @@ public class GridGUI {
int numOfGuesses = 0; int numOfGuesses = 0;
int rows; int rows;
int columns; int columns;
boolean clicked = false;
boolean endGame = false;
Color darkRed = new Color(100, 80, 0);
Border loweredBevel = BorderFactory.createLoweredBevelBorder();
Ship destroyer = new Ship(2, "destroyer"); Ship destroyer = new Ship(2, "destroyer");
Ship cruiser = new Ship(3, "cruiser"); Ship cruiser = new Ship(3, "cruiser");

Loading…
Cancel
Save