Play Battleship

This HTML5 game pits you against the machine!

My TurnI win!I lose. 

Your TurnYou Win!You Lose. 

Your Ships

(5)  aircraft carrier
(4)  battleship
(3)  submarine
(3)  cruiser
(2)  destroyer

Enemy Ships

(5)  aircraft carrier
(4)  battleship
(3)  submarine
(3)  cruiser
(2)  destroyer

Messages

Place your ships by clicking the buttons above, or use the keyboard shortcuts.


Stats

Top 10 Player Wins

Rank Moves AI Mode
117Learning
217Learning
317Learning
417Learning
517Learning
617Learning
717Learning
818Learning
919Learning
1019Learning

(Your scores are highlighted)

See more detailed stats here!

Rules

  1. Each player places their ships. (The AI places its ships randomly, and it cannot see where you've placed your ships.)
  2. The players take turns taking shots at squares. The results are either "hit", "miss", or "you sunk my [whatever]".
  3. The winner is the first player to sink all of the other player's ships.

Instructions

  1. Move your ships around by pressing the arrow keys, clicking squares on the board, or using the "turn" button.
  2. When you've got a ship where you want it, press the "drop" button.
  3. On your turn, click a square on the other board and see what happens.
  4. Watch the "messages" box below the boards.

Options

AI Mode

AI mode cannot be changed while a game is in progress.

The AI uses data about how all previous players have placed their ships (as well as the normal Probability algorithm) to determine likely ship locations.
The AI assumes a random ship distribution when calculating the best square, just like the probability calculator does. Also uses diagonal skewing.
The AI has no idea what's going on. It does not understand the game of Battleship. It tries random squares and watches the little blinking dots, experiencing a mild sensation that it describes as "pleasure". You are almost guaranteed to win, and the AI is ok with that.