- Filled: for all i in Rows, j in Columns, f(i,j) if position
i,j contains a ship.
- Part: for all i in Rows, j in Columns, pa(i,j), pb(i,j),
and pc(i,j) encode the type of ship part in the given grid cell.
i,j contains a ship.
- Battleship: bi(i), bj(j), bd encodes the position and
direction of the battleship.
- Cruisers: ci(k,i), cj(k,j), cd(k) encodes the position and
direction of each cruiser,
. - Destroyers: di(k,i), dj(k,j), dd(k) encodes the position and
direction of each destroyer,
. - Submarines: si(k,i), sj(k,j) encodes the position of each
submarine,
.
Total variables:
.
Next: Initial Conditions
Up: BATTLESHIPS
Previous: Objects