Battleship Puzzle
Find every ship from the row and column numbers; ships never touch, not even at the corners.
Recent
Your last 10 settings, saved only in this browser. Nothing is uploaded.

How to use the Battleship puzzle tool
- Pick a Size (6×6, 7×7 or 8×8; the default is 8×8) and a Difficulty (Easy, Medium or Hard).
- Press New puzzle to make another puzzle. “Generating…” shows while it is made.
- Click or tap a cell to place a ship cell. Click or tap it again to clear it.
- Right-click, or tap the Water chip, to put a water dot in a cell that is surely empty.
- Read the numbers at the end of each row and at the bottom of each column. A number turns grey when you have placed that many ship cells and red when the line is broken.
- Cells that are already filled in are given and cannot be changed: a round end shows which way its ship continues, a single dot is a one-cell ship, a square is a middle piece, and small waves are water.
- Press Hint when you are stuck. It highlights the next cell and explains the rule that proves it. If you made a wrong mark, it points at that mark first.
- Press Check to see red marks on cells that differ from the solution, or “No mistakes so far” with the percentage done. When the puzzle is solved the page shows “Solved in m:ss”.
Keyboard: arrow keys move, Space places a ship cell, X marks water and Backspace clears. Undo and Redo work with Ctrl+Z and Shift+Ctrl+Z (Cmd on a Mac). Print gives the puzzle on its own page.
Battleship puzzle rules
Hide a whole fleet in a square grid. Every ship is a straight line of cells, horizontal or vertical, and ships never touch each other, not even diagonally. The number at the end of each row and column tells you how many of its cells belong to ships. The fleet depends on the size: on 6×6 it is one 3-cell ship, two 2-cell ships and three single cells. On 7×7 it is two 3-cell ships, two 2-cell ships and three single cells. On 8×8 it is one 4-cell ship, two 3-cell ships, three 2-cell ships and four single cells, which is 20 ship cells in all. The puzzle was devised in Argentina in 1982 and is also known as Bimaru, according to the Wikipedia article on the puzzle.
How to solve a battleship puzzle
Work from the numbers outward. These are the rules the hints use, and you can apply them by hand:
- Zero and full: if a line already has its number of ship cells, every other open cell is water. If a line needs exactly as many cells as it has open, they are all ships.
- Diagonals: the four corners of any ship cell are water, because ships never touch and a ship is straight.
- Axis: when two ship cells sit side by side, that ship is horizontal, so the cells above and below both are water. The same holds sideways for a vertical pair.
- Pieces: a one-cell ship has water on all four sides. A round end has water behind it and beside it, and the ship continues on the other side.
- Too long: a ship cell that would make a straight ship longer than the longest ship in the fleet is water.
Easy puzzles need only the first four rules. Medium puzzles also need the too-long rule. Hard puzzles need counting the fleet or trial and error: assume a cell is a ship, follow the rules, and look for a contradiction. In the 6×6 Easy puzzle (seed 3), the first hint reads: “Column 2 already has all its ship cells, so every open cell in it is water, including row 1, column 2.” Column 2 shows 0, so nothing in it is a ship.
Is battleship solitaire the same as the battleship puzzle?
Yes. Battleship Solitaire, Battleships, Bimaru and the battleship puzzle all name the same single-player logic puzzle. It is not the two-player guessing game: nobody fires shots, and the whole fleet can be worked out from the clues.
Frequently asked questions
Is the battleship puzzle free, and do I need an account?
Yes, it is free. There is no account or sign-up, and nothing is uploaded. Your progress and settings are saved automatically in your browser.
Does every puzzle have exactly one solution?
Yes. Each puzzle is generated in your browser from a random seed and kept only when the site’s solver proves it has exactly one solution. That means it can always be finished by logic.
What grid sizes are there?
6×6, 7×7 and 8×8. The fleet grows with the grid: 10 ship cells on 6×6, 13 on 7×7 and 20 on 8×8. A 10×10 board is not offered because proving a unique solution for it was too slow in the browser.
Can I play on a phone?
Yes, it works on phones, tablets and computers. On a phone or tablet, use the Ship and Water chips above the board to choose what a tap does.
Can I print a battleship puzzle?
Yes. Press Print to get the puzzle on its own page with its size, difficulty and rules. Tick “Print the answer page too” to add the solution, and choose Save as PDF in the print dialog if you want a file. A4 and Letter both work.
Can I sell battleship puzzles I print from here?
Yes. Puzzles from this page are royalty-free for personal, classroom and commercial use, including puzzle books on Amazon KDP, printables on Etsy and Teachers Pay Teachers. No credit is required. You may not copy the generator or the site itself to run a competing service; see the terms.
Related tools
- Star Battle: use it when you want to place stars in regions under row, column and region limits.
- Tents puzzle: use it when you want to place tents next to trees using row and column counts.
- Light Up puzzle: use it when you want to place bulbs so every white cell is lit.
- Thermometers puzzle: use it when you want to fill thermometers from the bulb using clue counts.
- Kakurasu: use it when you want to shade cells to match weighted row and column sums.
- Norinori: use it when you want to shade dominoes in a grid of regions.
- Nonogram (play online): use it when you want to reveal a picture from row and column clues.
- All puzzles on the site: use it when you want to browse every puzzle type in one place.