For anyone familiar with the classic “Battleship” game, you’ll wonder why no one thought of this before. [Karyn]’s version of the game is decidedly low-tech, but gets the job done.
A Ship object consists of a size, a name, an array representing the ship in the game, a position (x, y, orientation), and a boolean variable to indicate whether it is sunk or not ... sizes of the ...