Battleship (puzzle)

From Wikipedia, the free encyclopedia

The Battleship puzzle (sometimes called Solitaire Battleships or Battleship Solitaire) is a logic puzzle based on the Battleship guessing game. It and its many variants often appear in puzzle contests, such as the WPC, and puzzle magazines, such as Games Magazine.

[edit] Description

In a square grid of 10×10 small squares, an armada of battleships is located. There is one battleship of 4 squares, two cruisers of 3 squares, three destroyers of 2 squares, and four submarines of 1 square. Each ship occupies a number of contiguous squares on the grid, arranged either horizontally or vertically. The boats are placed so that no boat touches any other boat, not even diagonally.

The goal of the puzzle is to discover where the ships are located. To solve it, one is given various clues. The clues are of two forms. Firstly, one can be told, for particular squares in the grid, whether each square contains a submarine, a longer ship (and whether it is the north, south, east, west, or middle of a ship), or water (meaning no ship). Secondly, one can be told, for a row or column of the grid, how many squares are occupied by ships.

Variants have included using larger or smaller grids (with comparable increases in the size of the armada to be found), as well as using a hexagonal grid.

Battleship is an NP-complete problem. [1]

[edit] External link

In other languages