Home / Games / Sea Battle

Sea Battle

vs computer~10 minLogic & probability
Level
You
0
VS
Computer
0
Your fleet
Enemy waters
Place your fleet, then start the battle.
Drag ships to move · tap to rotate · ships can’t touch

How to play

  1. Place your fleet of 5 ships (lengths 5, 4, 3, 3 and 2). Drag to move, tap to rotate, or press Shuffle fleet. Ships may not touch, not even at the corners.
  2. Press Start battle. Tap a square in Enemy waters to fire.
  3. A hit lets you fire again. A miss passes the turn to the computer.
  4. When a ship is sunk, the squares around it are marked as empty.
  5. Sink all 5 enemy ships before the computer sinks yours.
Quick answer

Sea Battle is the classic two-player guessing game: each side hides a fleet on a 10×10 grid and takes turns calling squares to fire at. It looks like luck, but good play is pure logic and probability.

The best strategy has two modes: search efficiently until you find a ship, then target it until it sinks. Keeping a probability map does both at once and sinks a fleet in far fewer shots.

Rules used here

  1. Each player has five ships: lengths 5, 4, 3, 3 and 2, placed horizontally or vertically.
  2. Ships may not touch each other, not even diagonally.
  3. Players take turns firing at one square. The defender says miss, hit, or sunk.
  4. A hit earns another shot. A miss ends the turn.
  5. The first player to sink the whole enemy fleet wins.

The game started as a pencil-and-paper game in the early 20th century and has had many commercial versions since. Rules differ between countries: some allow ships to touch, some give only one shot per turn whatever the result.

Strategy, from worst to best

1. Random shooting

Firing at random unknown squares works eventually, but you waste shots on squares that cannot possibly hold a ship.

2. Hunt and target

Fire at random until you hit something, then try the four neighbouring squares. Once you have two hits in a line, keep shooting along that line until the ship sinks.

3. Search on a checkerboard

The smallest ship is two squares long, so it must cover at least one square of a checkerboard pattern. Searching only those squares halves the area you need to cover. When only longer ships are left, you can spread your search shots even further apart.

4. The probability map

For every remaining ship, count every way it could still fit on the board given your misses and sunk ships. Add up, for each square, how many of those placements cover it. The square with the highest count is the most likely to hold a ship. After a hit, only count placements that pass through the hit. This is what the Hard computer does.

How much better is each strategy? Our simulation

We simulated 3,000 games for each strategy using the rules on this page (10×10 board, ships 5-4-3-3-2, no touching, squares around sunk ships marked empty) and counted the shots needed to sink the whole fleet:

StrategyAverage shotsMedianBest gameWorst game
Random (Easy)86.68764100
Hunt and target + checkerboard (Medium)44.4452166
Probability map (Hard)38.4382256

Simple hunt-and-target already halves the number of shots compared with random play. The probability map saves about six more shots per game, which is often the difference between winning and losing.

Frequently asked questions

Where should I place my ships?

There is no perfect spot, but avoid obvious patterns. Against a probability-based opponent, ships along the edges and corners are found slightly later during the search phase, because fewer placements cover those squares.

Why are some squares marked automatically?

Because ships can’t touch, every square around a sunk ship must be empty. Marking them saves you wasted shots.

Do I get another shot after a hit?

Yes, in this version. Some rule sets give only one shot per turn; ours rewards hits with another shot.

Is there a two-player mode?

Not yet. Sea Battle needs hidden boards, which does not work well on one shared screen.


More: All games · Probability in games · Hex