🚢 Battleship Online

A 2-player online battleship game. Position your fleet and sink all of your opponent's ships first!

Preparing...

Your Sea

Opponent's Sea

way of playing (a game)

  1. Click "Create Room" to get a code and share with opponent (or play yourself with 2 tabs)
  2. Opponent joins by clicking "Join Room" and entering the code
  3. Both players position fleets and click "Ready!" to start battle
  4. Host (creator) goes first. Click opponent's board to attack.
  5. 💥 Hit / ● Miss. Sink all 5 ships to win!

What is Online Battleship Game?

This classic naval warfare game brings turn-based strategy competition to browsers without requiring accounts or downloads. Two players position their fleet on hidden grids and take turns calling coordinates to sink opponent ships. Victory requires strategic positioning and logical deduction to find and eliminate all enemy vessels first. The game tracks hits, misses, and remaining ships automatically, providing immediate feedback on each move. Perfect for testing tactical thinking and probability assessment.

How to Use

Begin by positioning your fleet on your private grid without showing your opponent your placement strategy. Arrange battleships, cruisers, destroyers, and submarines across available spaces. Once both players finish setup, take turns calling grid coordinates like "B5" or "G7." The game confirms whether coordinates hit, miss, or result in ship sinking. Mark opponent coordinates on your grid to track their ship locations. Successful hits continue your turn while misses pass control to your opponent. Use previous hit and miss patterns to narrow down ship positions logically. Continue until one player eliminates all opponent vessels.

Use Cases

Casual players enjoy quick 10-15 minute games during work breaks as a brain-teasing diversion. Family game nights incorporate battleship as a screen-based activity that suits all ages from eight to eighty. Remote teams build camaraderie through lunchtime battleship tournaments with leaderboards. Educators teach probability concepts and strategic thinking through gameplay that demonstrates spatial reasoning and pattern recognition. Military strategy enthusiasts appreciate the historical connection to naval tactical principles. Teachers introduce logic programming by analyzing battleship algorithms and AI opponent behavior. Dating couples play turn-based matches as a conversation starter during video calls. Grandparents engage grandchildren through online gaming that maintains family connections across distances.

Tips & Insights

Space ships strategically apart to avoid diagonal hits revealing multiple ships simultaneously. Concentrate your guesses around confirmed hits rather than random grid calling to improve efficiency. Larger ships become targets after confirming initial hits, so protect them with defensive positioning. Understanding probability heat maps helps predict ship locations based on previous patterns. Classic strategic doctrine suggests placing ships diagonally or clustered in specific grid sections for defensive advantage.

Frequently Asked Questions

How do I play online multiplayer?

Click "Create Room" to get a room code and share it with your opponent. Your opponent joins by clicking "Join Room" and entering the code.

How are the ships placed?

Click "Random Placement" to auto-place your fleet, or manually select ships and click grid squares to place them. Press R or click "Rotate" to change direction.

How does turn order work?

The room host goes first. The first player to sink all of the opponent's ships wins.

What types and how many ships?

5 ships total: Carrier (5 squares), Battleship (4 squares), Cruiser (3 squares), Destroyer (2 squares), and Submarine (2 squares). Sink all 5 to win.

What happens if a player disconnects or goes idle?

If a player disconnects, the game will wait for them to reconnect within a timeout period (typically several minutes). If they don't return, the opponent is automatically declared the winner. Idle players who don't take turns for an extended time will also forfeit the match.

Can I place my ships randomly instead of manually?

Yes, most battleship implementations offer a 'random placement' or 'auto-arrange' button that automatically positions all your ships according to game rules. This is useful if you want to start quickly or prefer not to spend time on manual setup. You can always reset and try again until you get a placement you like.

How does the hit/miss feedback system work?

When you fire on an opponent's grid, the cell immediately shows whether you hit a ship or missed. Hit cells are marked with a different color (usually red or X), while misses appear as empty (usually blue or O). The game tracks your accuracy and prevents you from firing on the same cell twice.

Is there a time limit for taking turns?

Most online battleship games enforce a turn timer to prevent players from stalling or taking too long between moves. If you don't fire within the allotted time (usually 30-60 seconds), your turn automatically passes to your opponent. The timer helps keep matches at a steady pace.

Can I play on mobile devices?

The battleship game is fully responsive and works on smartphones and tablets through any modern web browser. The grids are touch-optimized so you can tap cells to fire, and the interface scales appropriately for smaller screens. Landscape orientation typically provides a better view of both your fleet and opponent's grid.

What happens if both players sink each other's ships simultaneously?

In simultaneous-fire battleship variants, both players can fire in the same round, potentially sinking each other at once. The game determines the winner based on who fired first or has fewer ships remaining. Most implementations handle this scenario by awarding the win to whoever delivered the final blow first.