Class: Space

Space(row, col)

new Space(row, col)

Represents a single space on a board. Creates a Space object, defaulting to no ship and not hit
Parameters:
Name Type Description
row number The row the space is in on its board
col number The column the space is in on its board
Source: