Code tool

Battleship

Fleets are placed automatically, then take turns firing The computer uses a simple hunt strategy and is deliberately not expert.

In-browser processingNo account requiredPrivacy details ↗

Player vs computer · fleets are placed automatically.

Your fleet

Enemy waters

A QUICK WALKTHROUGH

How to use this tool

  1. Start a computer match; fleets are placed automatically without overlap or touching
  2. Start the battle, then fire at unknown enemy cells
  3. Sink every enemy ship to win.

Computer strength

The computer uses random hunt shots plus orthogonal targeting around a hit. It does not infer probability or remember advanced patterns.

GOOD TO KNOW

Common questions

Are placements checked?

Yes. Ships stay inside the board and cannot overlap or touch.

Can two people play?

No. This version is computer-only.

Is the computer expert?

No. It is a simple hunt-and-target opponent.