Battleship (1)

Battleship (also Battleships or Sea Battle) is a guessing game for two players. It is known worldwide as a pencil and paper game which dates from World War I. The game takes place on a 10x1010x10 board where the rows are numbered with letters (from a to j), and the columns are numbered with numbers from 1 to 10.

 
Each player has a board, on which he places 10 ships. Each ship occupies a number of consecutive squares on the grid, arranged either horizontally or vertically, but never in diagonal. A ship can neither touch nor overlap with any other ship. The ships can be 2, 3, 4 or 5-square long. The most common setting for the fleet is: 1 ship of length 5, 2 ships of length 4, 3 ships of length 3, and 4 ships of length 2.

 
As long as those rules hold, the player can place their ships wherever they want in the board. Then the game proceeds in rounds, and each player will try to sink the ships of the oppossite player by ’shooting’ directly to a valid coordinate.

Input

Output

Follow the format shown on the examples below.

Observation

 

Problem information

Author: Unknown
Translator: Maria Serna

Generation: 2026-01-25T13:38:53.565Z

© Jutge.org, 2006–2026.
https://jutge.org