🚢 Battleship Games

Place your ships in a 10x10 grid to sink the enemy fleet! Enemy ships are equipped with AI that attacks adjacent squares preferentially after a hit. Win by sinking all ships.

🌐 Online Battle
Place the ship.

Your waters

Enemy Waters

way of playing (a game)

  • First, use "Random Placement" to automatically place the ships, or click on the board to place them one by one
  • You can change the ship's orientation with the R key or the "Rotate" button.
  • Once all ships are placed, the battle begins! Click on the enemy's waters to attack!
  • 🔴Hit / 🔵Miss. Enemy AI will target the area after a hit

What is Battleship?

Battleship is the classic naval strategy game adapted for your browser. Position your fleet of ships on a 10×10 grid, then take turns attacking your opponent's board to sink their vessels. The AI opponent employs intelligent tactics—after landing a hit, it prioritizes attacking adjacent squares to efficiently eliminate ships. Win by sinking all enemy ships while protecting your fleet. Play instantly without registration required.

How to Use

Begin by placing your ships on your grid using the placement interface—drag or click to position each vessel. Ships have different sizes and can be oriented horizontally or vertically. Once both fleets are positioned, the game alternates between your attacks and the AI's attacks. To attack, click a square on the opponent's grid. The game indicates hits, misses, and when you've sunk a complete ship. Watch your own grid simultaneously, as the AI will attack your ships with increasing intelligence. The AI learns from its hits and focuses attack patterns on areas where it's already damaged your vessels. Victory goes to the first player to sink all opponent ships.

Use Cases

• Strategic thinking development: Each placement decision requires considering offensive and defensive strategy. Where you position ships affects both your vulnerability and your offensive capabilities, requiring thoughtful planning.
• Learning game AI behavior: The AI's sophisticated hunting algorithm demonstrates practical pathfinding and strategic decision-making that's educational for programmers and game design students.
• Casual competitive play: Perfect for quick gaming sessions against a computer opponent. No need to wait for another player or manage real-time turn-based coordination.
• Teaching pattern recognition: Players learn to recognize patterns in attack distributions and predict where concentrated opposition firepower might be located on the board.

Tips & Insights

Spacing your ships apart prevents the AI from hitting multiple ships with clustered attacks. The edges and corners of the board are often safer positions than the middle where the AI will probe more thoroughly. After the AI gets a hit, it will aggressively search adjacent squares, so placing ship segments strategically can waste its turns. Battleship is fundamentally a game of probability and pattern recognition—successful players develop intuition about optimal ship placement and efficient attack patterns through repeated play.

Frequently Asked Questions

How are the ships placed?

You can place them automatically with the "Random placement" button or by clicking on them one at a time, and you can change their orientation with the R key.

How to attack?

Click on the enemy grid (right side/bottom) to attack. Red means hit, blue means miss.

How does the enemy AI move?

It attacks randomly at first, and when it hits, it attacks adjacent squares preferentially.

What are the win conditions?

Victory is achieved by sinking all five enemy ships.

Can I place ships horizontally and vertically?

Yes, you can place ships in both directions during setup. The game allows flexible ship placement as long as ships don't overlap with each other on your grid.

What happens if I keep attacking the same empty square?

There's no penalty for attacking the same water square repeatedly; it will simply show as a miss again. However, it's tactically inefficient—you should focus on unexplored areas to find ships faster.

How smart is the enemy AI?

The AI is strategic but not unbeatable; after landing a hit, it intelligently targets adjacent squares to eliminate your ships. It relies on logical deduction rather than perfect information.

Can I see my previous attacks and the enemy's?

Yes, the game highlights hit squares and miss squares on both your attack grid and the enemy's grid. This information persists throughout the game, helping you plan your next moves strategically.

What's the number of ships in standard Battleship?

Standard Battleship uses 5 ships of varying sizes (Battleship, Cruiser, Destroyer, Submarine, Patrol Boat). The game enforces these standard rules, so you cannot customize the fleet size.

Is there a time limit per turn?

Most online Battleship games don't impose a strict time limit per move. However, in some competitive versions, a timer may exist—check the game interface for any countdown indicators.