Home › Fun & Games › Battleship Game

Battleship Game

Hide your five ships on a 10 × 10 grid, then take turns firing at the computer's waters. Sink the whole enemy fleet before it finds yours.

Last updated:

Your wins0
Computer wins0

Place your ships

Your fleet

    Place your ships

    Pick a ship, then click a square on your board to place it (it extends right, or down when vertical). Click a placed ship to pick it up again.

      Fleet: Carrier (5), Battleship (4), Cruiser (3), Submarine (3), Destroyer (2). Keys: arrows + Enter to place or fire, R rotate, N new game.

      Advertisement
      Advertisement

      How to use the Battleship Game

      1. Arrange your fleet. Your ships start in random positions. Press Shuffle ships for a new layout, or pick a ship and click your board to move it. Use Rotate (or R) to switch between horizontal and vertical.
      2. Choose the rules. Pick the computer's level and who fires first. Optionally forbid touching ships or allow a bonus shot after each hit.
      3. Start the battle and click a square in Enemy waters to fire. A red marker is a hit, a small dot is a miss.
      4. Hunt down damaged ships. After a hit, fire at the neighbouring squares to find which way the ship runs. You are told when a ship is sunk.
      5. Sink all five enemy ships before the computer sinks yours to win.

      Battleship rules at a glance

      ShipSizeCount
      Carrier5 squares1
      Battleship4 squares1
      Cruiser3 squares1
      Submarine3 squares1
      Destroyer2 squares1
      Total17 squares5 ships
      • Both players secretly place their ships horizontally or vertically on a 10 × 10 grid. Ships can't overlap or leave the board.
      • Players take turns naming a square, such as B7, to fire at. The defender answers "hit" or "miss".
      • When every square of a ship has been hit, the ship is sunk and the defender says which ship it was.
      • The first player to sink all five enemy ships wins.

      How the computer opponent works

      Easy picks random squares it hasn't tried yet. On average, random shooting needs well over 90 shots to sink a fleet on a 100-square board.

      Normal uses the classic hunt and target method. While hunting it only fires on squares of one checkerboard color, because even the smallest remaining ship must cover one of them. After a hit it switches to target mode, tries the four neighbours and, once it has two hits in a row, keeps firing along that line until the ship sinks.

      Hard builds a probability map before every shot. For each ship still afloat it counts every horizontal and vertical position that fits with the misses and sunk ships so far. Positions that pass through unexplained hits are weighted much more heavily. It then fires at the square covered by the most positions. This approach usually finishes a game in noticeably fewer shots than hunt and target.

      Tips to beat the computer

      • Use parity. Fire on a checkerboard pattern while hunting. When the Destroyer is sunk, every remaining ship is at least 3 long, so you can space shots three squares apart.
      • Finish what you start. After a hit, find the direction of the ship before going back to hunting. A half-damaged ship gives you free information.
      • Read the sunk messages. If you sink a 3-square ship but scored 4 hits in that area, another ship is right next to it.
      • Hide well. Against Hard, edges and corners are a little safer than the center, but don't put every ship on the edge or the pattern becomes predictable.

      Frequently asked questions

      What ships are in Battleship?

      Each player has five ships: a Carrier (5 squares), a Battleship (4), a Cruiser (3), a Submarine (3) and a Destroyer (2). That is 17 squares in total, so 17 hits are needed to sink a whole fleet.

      Can ships touch in Battleship?

      In the classic board game ships may be placed right next to each other, but they can't overlap or be placed diagonally. Many players prefer a house rule where ships may not touch, even at the corners. This game supports both.

      How does the computer decide where to shoot?

      Easy fires at random squares. Normal hunts on a checkerboard pattern (a ship of length two or more always covers at least one square of the right color) and, after a hit, targets the neighbouring squares and follows the line. Hard counts every way the remaining ships could still fit around the known hits and misses and fires at the square most likely to hold a ship.

      What is the best strategy in Battleship?

      When hunting, fire on a checkerboard pattern so you cover the board twice as fast, and spread out your shots. After a hit, try the four neighbouring squares, then keep going along the line once you have two hits. Remember which ships are left: if only long ships remain, you can space your hunting shots further apart.

      Where should I place my ships?

      There is no perfect layout, but avoid obvious patterns. A computer using a probability map tends to aim at the center first because more ship positions pass through it, so ships along the edges can survive a little longer against it. Mixing horizontal and vertical ships also helps.

      What does 'fire again after a hit' do?

      With this option, a player who scores a hit immediately gets another shot, and keeps shooting until they miss. It makes games faster and more swingy. In the standard rules each player fires one shot per turn.

      Are all the tools on FreeToolCabin tested for quality and accuracy?

      Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

      Related tools

      MinesweeperPlay classic Minesweeper: 3 difficulties, flags, timer and a safe first click.CheckersPlay checkers online against the computer or a friend, with kings, undo and hints.Connect FourPlay Connect 4 online against the computer or a friend.Memory Card GameFlip cards and match emoji pairs on 4×3 to 6×6 grids, with moves, timer and best scores.SolitairePlay classic Klondike Solitaire with Draw 1 or Draw 3 and undo.Spider SolitairePlay Spider Solitaire online with 1, 2 or 4 suits, hints, unlimited undo and a timer.Play Chess vs ComputerPlay chess online against the computer at 8 difficulty levels.Snake GamePlay classic Snake online with speeds, wall modes and high scores.Tic Tac ToePlay tic tac toe against an unbeatable AI or a friend.Block Puzzle GameClassic falling blocks puzzle game with levels and high score.2048 GamePlay 2048 online with swipe controls, undo and best score.Sudoku OnlinePlay free Sudoku with 4 difficulty levels, notes, hints and a timer.Word Guess GameGuess the hidden five-letter word in six tries. Unlimited games, stats and hard mode.HangmanClassic friendly hangman word game with categories, hints and difficulty levels.Flappy GameTap to flap a round chick through bamboo gaps and beat your high score.Dino Runner GameJump cacti and duck buzzing beetles in an original endless desert runner.Typing GameType the falling words before they land; level up and track your WPM and accuracy.Math Quiz GameTimed mental math rounds with four operations, five levels, streaks and high scores.Flag QuizGuess the flags of all 196 countries in four modes, from multiple choice to timed.Map QuizFind countries on a clickable world map or name the highlighted one, by continent.Periodic Table QuizLearn all 118 elements: quiz symbols, names and atomic numbers or click them on the table.Spelling Bee GameMake words from 7 honeycomb letters, always using the center letter. New daily puzzle.Jigsaw PuzzleTurn a sample picture or your own photo into a 12 to 150 piece jigsaw puzzle and solve it.Sliding PuzzlePlay the 15 puzzle and 3×3 to 6×6 sliding tile puzzles with numbers or your own photo.Mahjong SolitaireMatch pairs of free tiles to clear the Turtle and two smaller layouts, with hints, shuffle and undo.Scrabble Word FinderFind the highest-scoring words from your rack, with blank tiles, patterns and bingo bonus.Wordle SolverEnter your guesses and colours to see every possible answer and the best next guess.Crossword SolverFind words that fit a crossword pattern like c?t from the length and the letters you know.Word Search GeneratorMake a word search puzzle from your words, play it online or print it with an answer key.Pong GamePlay classic Pong online against the computer on 3 levels or with a friend, first to 11.Breakout GameClassic brick breaker game with levels, power-ups and lives. Play with mouse, touch or keyboard.Whack-a-MoleWhack the moles before they hide in 30 or 60 second rounds. Speed increases, best score saved.Simon Says GameRepeat the growing color and sound sequence. Classic memory game with strict mode and high score.ReversiPlay Reversi (Othello rules) online vs a 3-level computer or a friend, with move hints.GomokuGet five in a row on a 15×15 board against a smart computer or a friend.FreeCellPlay FreeCell solitaire online with the classic numbered deals, undo, hints and auto-move.Mastermind GameCrack the secret 4-color code in 10 tries using black and white feedback pegs.Tower of HanoiPlay the Tower of Hanoi puzzle with 3 to 8 disks, or watch it solve itself in the fewest moves.Basketball Shooting GameDrag and release to shoot hoops against a 60-second clock, with moving-hoop levels and combo bonuses.Bible Trivia QuizMultiple-choice Bible trivia by book and difficulty, with verse references and a kids mode.Contract BridgePlay contract bridge with 3 computer players: SAYC-style bidding, declarer play, duplicate scoring.Chess Analysis BoardSet up positions, paste FEN or PGN and step through moves with an engine evaluation bar.Guess the Country by ShapeWorldle-style geography game: name the country from its outline in six tries, with distance hints.Cryptogram PuzzleCrack a substitution cipher letter by letter to reveal a famous saying. Daily puzzle, hints, timer.Element Mixing GameMix water, fire, earth and air to discover 400+ items. Discovery book, hints, works offline.EuchrePlay Euchre online with a computer partner: order up trump, use the bowers, go alone, race to 10.Falling Sand GameSandbox with sand, water, fire, plants, lava and more that flow, burn, grow and react. Save your scene.Forehead Guessing GameHeads-up style party game: hold the phone to your forehead, tilt down if correct, up to pass.Fruit Merge GameDrop fruits into the box and merge matching ones into bigger fruit, all the way to a watermelon.Fruit Slice GameSwipe to slice tossed fruit, dodge the rocks and chain combos. Three lives, mouse or touch.Conway's Game of LifeDraw cells and watch them evolve: play, step, change speed, load gliders and guns, import RLE.Online Game Show BuzzerQuiz buzzer for 2–8 teams on one device: first key or tap locks out the rest with sound.Games for CatsFull-screen mice, laser dot, fish and bugs for cats to chase on a tablet, with squeaks and a tap counter.Kids General Knowledge QuizFun quiz for kids aged 5–12 on animals, space, geography and science, with read-aloud and stars.Go FishKid-friendly Go Fish card game vs the computer: ask for ranks, make books of four, voice prompts.Go Game (Baduk)Play Go on 9×9, 13×13 or 19×19 vs a simple AI or a friend, with ko, scoring and SGF export.Higher or Lower GameIs the next one higher or lower? Compare country populations, areas, buildings and mountains.Imposter Word GamePass-the-phone party game: everyone gets the secret word except the imposter. Clue, vote, reveal.Calcudoku Math PuzzleSolve KenKen-style cage arithmetic puzzles from 3×3 to 9×9, each with a unique solution.Logic Grid PuzzlesSolve Einstein-style deduction puzzles with clues and an ✗/✓ grid, from easy to hard.Math Equation Guess GameNerdle-style math puzzle: find the hidden 8-character equation in six tries. Daily and unlimited.Maze Chase GameArcade maze game: eat every dot, grab power pellets and dodge four ghosts. Levels, lives and high score.Mini Golf GamePlay 18 holes of top-down mini golf: drag to putt past windmills, water and sand, with a scorecard.Connect the Dots Flow PuzzleDraw lines to join matching colored dots and fill the whole board without crossings. 5×5 to 12×12.Car Parking PuzzleSlide the blocking cars and trucks to free the red car. 120 graded levels with hints.Peg SolitaireJump pegs over each other until only one is left. English, European and triangle boards with hints.Pipes PuzzleRotate pipe tiles to connect every pipe to the source with no leaks. 5×5 to 15×15, wrap mode, timer.Pop It GameVirtual pop-it fidget toy with pop sounds, shapes and colors, plus a two-player last-pop game.
      See all 141 Online Games →