Skip to content
Games with logic
100%

Observation · probability · strategy

Battleship · Probability lab

Mark hits and misses on a small board. See which complete fleets still fit, and why the chance at your selected cell changes.

Fleet

Exact counting: complete legal fleets are equally likely, not independent ship placements.

Observations

Choose Miss or Hit, then a cell. Hit means the ship has not sunk yet. Erase removes that shot and everything after it: feedback depends on shot order.

Observations

Chance of a ship

Darker cells contain ships in more compatible fleets. Select a cell for its exact fraction.

Choose a cell on the right to inspect its actual count.

A1 · Hit probability

with a ship here / compatible fleets

Possible reports at this cell

bits · Expected reduction in uncertainty

A report splits the remaining fleets into groups. More balanced groups give more information. This differs from trying to hit right now.

Inspect complete arrangements · 264

These are possible hidden fleets, not a view of an opponent's actual board. The selected cell matches the probability map. Left/Right and Home/End step through arrangements.

Compare search strategies

Three algorithms search the same sampled complete fleets. We count own shots until the final sinking: lower is better. This teaching-board experiment is not a 10×10 win rate.

Cases are sampled uniformly from all complete legal fleets, with replacement. Strategies share the same cases and reproducible randomness. Placement counting is a heuristic, not an exact joint distribution.

Back to top
Privacy