Top Level Namespace

Defined Under Namespace

Modules: UssMonteCarlo Classes: GunnerError, HomingGunner, RandomGunner

Constant Summary collapse

SHIPS =
[:carrier, :battleship, :destroyer, :submarine, :patrolship]
SHIP_SIZES =
{:carrier => 5, :battleship => 4, :destroyer => 3, :submarine => 3, :patrolship => 2}
ROWS =
%w(A B C D E F G H I J)
COLUMNS =
%w(1 2 3 4 5 6 7 8 9 10)
ORIENTATIONS =
%w(horizontal vertical)
WIN_RESULT =
:victory
LOOSE_RESULT =
:defeat
DQ_RESULT =
:disqualified
GRID_DIMENSIONS =
[ROWS.length, COLUMNS.length]
GRID_SIZE =
ROWS.length