Gameplay - camfush/Battleship GitHub Wiki
The game consists of two portions: the setup and the play. During the set up, players must lay out their ships horizontally or vertically on a 10x10 grid. The ships must not overlap.
The first person to go is decided by a coin flip, or in this case the result of a random function. In the play phase players take turns at guessing the location of the other side’s ships. If a guess is correct and it lands on a ship, it is marked by a red marker, otherwise it is marked with a white one. The player cannot choose a location outside the board, or choose the same location twice. The first one to lose all their ships is the loser of the game. The same person can’t go twice in a row, they must be synchronous.