Skip to content

[US-01] Setting ships somewhere on the board

As someone playing, I would like to somehow arrange the ships on a kind of board that is not visible to the other player, so that the game can fairly begin.

The system should make available a board of about 10 by 10 fields for every participant, containing the usual ships — one large (5), one slightly smaller (4), and others (3, 3, 2 length). It should somehow allow to put ships straight, not diagonal, and avoid situations where ships overlap or leave the board. Each side’s positions should not be seen by the opponent, although the system may manage visibility automatically.

Acceptance expectations (in general terms): – If a ship is placed outside the board, the action should not succeed and an error or similar feedback should appear. – If two ships end up on the same squares, the later placement should not overwrite the earlier one. – When all ships have been placed validly, the board can be considered ready and hidden for the opponent.