
/**
 * Write a description of class TestClass here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class TestClass
{
    public static void main (String[] args) 
    {
        // created a player and a computer opponent w/ boards
        Player p1= new Player();
        ComputerPlayer compPlayer= new ComputerPlayer();
        GameboardYou yourBoard = new GameboardYou();
        GameboardOpponent compBoard= new GameboardOpponent();
        
        // ships are instantiated
        Ship carrier = new Ship(5);
        Ship battleship = new Ship(4);
        battleship.setIsVert(false); //horizontal
        Ship submarine = new Ship(3);
        Ship destroyer = new Ship(3);
        destroyer.setIsVert(false); //horizontal
        Ship patrolBoat = new Ship(2);
        patrolBoat.setIsVert(false); //horizontal
        
        // all ships placed on board
        compBoard.placeShips();
        yourBoard.placeShip(1,2, carrier);
        yourBoard.placeShip(5,3, battleship);
        yourBoard.placeShip(7,7, submarine);
        yourBoard.placeShip(1,2, destroyer);
        yourBoard.placeShip(9,9, patrolBoat);
        
        // one sequence 
        p1.takeShot(4,5);
        compPlayer.takeShot();
        
    }
}

@@ -1056,32 +1056,34 @@
 arine);%0A        
+//
 yourBoard.placeS
@@ -1098,24 +1098,64 @@
  destroyer);
+ //should not work bc already ship there
 %0A        you
@@ -1143,32 +1143,34 @@
 p there%0A        
+//
 yourBoard.placeS
@@ -1190,16 +1190,52 @@
 olBoat);
+// should not work bc goes off board
 %0A       

all classes compile, do they work as intended? no se