Games tool

Free Battleship Game Online

Choose a square on the enemy board to fire. After your shot, the computer fires once at a random square on your fleet.

Runs in your browser. No upload.

Your fleet stays on this device. The computer randomly picks a square to shoot at.

Enemy board

Your board

About this tool

Free Battleship Game Online made simple.

This lightweight version uses an 8 × 8 board and three ships of lengths 4, 3 and 2. Fleets are placed randomly in your browser; the computer randomly picks an untried square to shoot at. It has no online play, account or server-side processing.

Guide

Using Free Battleship Game Online

This is a small Battleship game that you play against the computer on one device. The board is 8 by 8 and each side hides three ships of length 4, 3 and 2. You click a square on the enemy board to fire, and then the computer fires back once. There is no online play, no account and no saved score.

How to use it

  1. Look at the two boards. The enemy board is where you fire. Your own board shows your ships as dark squares.
  2. Click or tap a square on the enemy board. A dot means a miss and a cross means a hit, and a message tells you if you sank a ship.
  3. The computer then fires once at a square it has not tried before. Its hits and misses appear on your board.
  4. Keep going until one side has sunk every ship. Press New game to place new fleets and play again.

Worked examples

A shot that misses

You enter
Fleet
ships on squares 0-3, 14, 22, 30, 56 and 57 (squares numbered 0 to 63 from the top left, row by row)
Shot at
63
You get
Hit
no
Sunk
All sunk
no

Square 63 is the bottom right corner and holds no ship, so it is a miss and is marked with a dot. The page shows rows and columns, and the numbering here is only used for this example.

Run through the tool’s own code.

Sinking the shortest ship

You enter
Shots before
56
Shot at
57
You get
Hit
yes
Sunk
ship 3
All sunk
no

The length 2 ship sits on squares 56 and 57. Once both are hit the ship counts as sunk, and the game says so, but the other two ships are still afloat.

Run through the tool’s own code.

Firing at the same square twice

You enter
Shots before
0
Shot at
0
You get
Result
ignored

A square that was already tried cannot be fired at again. The button is also disabled, so the click does nothing and the computer does not take a turn.

Run through the tool’s own code.

Winning the game

You enter
Shots before
every ship square except 30
Shot at
30
You get
Hit
yes
Sunk
ship 2
All sunk
yes

Square 30 is the last unhit square of the length 3 ship. When all nine ship squares have been hit, the game ends with a win and the computer does not shoot back.

Run through the tool’s own code.

When it helps

  • Play a quick solo round while waiting, with no setup and no sign-in.
  • Practice reading a grid by row and column, which also helps with maps and spreadsheets.
  • Test your guessing strategy, such as firing in a spread pattern and then probing around a hit.
  • Let a child learn turn-taking and simple logic against a patient opponent.

Limits to keep in mind

  • The board is fixed at 8 by 8 with ships of length 4, 3 and 2. You cannot change the size or place your own ships.
  • Fleets are placed at random. Ships may sit next to each other, but they never overlap.
  • The computer picks any square it has not tried yet. It does not hunt around a hit, so it is a light opponent.
  • There is no two-player mode, online play, saved game or score history. Reloading the page ends the game.

Tips

  • Use the arrow keys to move between squares on the enemy board and press Enter or Space to fire.
  • After a hit, try the squares directly around it, since each ship runs in a straight line.
  • With nine ship squares on 64 and a shortest ship of two squares, firing on every second square in a checkerboard pattern will touch every ship.

Common questions

About Free Battleship Game Online.

How big is the board and how many ships are there?

The board is 8 by 8, which is 64 squares. Each side has three ships of length 4, 3 and 2, so nine squares in total hold a ship. Sink all nine on the other side to win.

Does the computer cheat?

No. It picks randomly from the squares it has not fired at yet and has no view of your fleet. It does not follow up on its hits, so it is easier to beat than a player who hunts around a hit.

Can I see where the enemy ships are?

No. The enemy board only shows your shots. Your own board shows your ships, plus the computer's hits and misses, so you can see how it is doing.

Can I play against another person?

Not in this version. It is a one-player game against the computer on one device. There is no online play and no pass-and-play mode.

Is anything saved or sent anywhere?

No. The game runs in your browser, the fleets are made on your device, and nothing is uploaded. When you close or reload the page the game is gone.

Can ships touch each other?

Yes. The placement code only stops two ships from sharing a square. They may sit side by side or end to end, which can make a cluster of hits look like one long ship.

How do I play with a keyboard?

Use Tab to reach the enemy board, the arrow keys to move between squares, and Enter or Space to fire. Each square has a label with its row, column and state for screen readers.

How do I use Battleship?

Choose a square on the enemy board to fire. After your shot, the computer fires once at a random square on your fleet.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.