Package battleship

Class Barge

All Implemented Interfaces:
IShip

public class Barge extends Ship
The type Barge represents a ship with a size of 1 unit. It is positioned on the game board based on its bearing and initial position. Author: britoeabreu Date: 2023-10-10 Time: 15:30
  • Constructor Details

    • Barge

      public Barge(Compass bearing, IPosition pos)
      Instantiates a new Barge.
      Parameters:
      bearing - The bearing of the barge (NORTH, SOUTH, EAST, or WEST).
      pos - The upper-left position of the barge on the game board.