Skip to content

Jaizzer/battleship

Repository files navigation

Battleship

Overview

Play Game

This Battleship game is a classic strategy game implemented in JavaScript. The goal of the game is to sink all of your opponent's ships before they sink yours. Players take turns guessing the coordinates of their opponent's ships on a grid. The first player to sink all of their opponent's ships wins the game.

Features

  • Single Player Mode: Play against the computer AI.
  • Multiplayer Mode: Play against a friend on the same device.
  • Responsive Design: Play the game on any device, including desktops, tablets, and smartphones.
  • Easy to Use Interface: Intuitive user interface for a seamless gaming experience.

Getting Started

To play the Battleship game, simply open Battleship.

How to Play

  1. Setup: Each player places their ships on the grid.
  2. Take Turns: Players take turns guessing the coordinates of their opponent's ships.
  3. Hit or Miss: If a guess hits an opponent's ship, it's a hit. Otherwise, it's a miss.
  4. Sink Ships: Continue guessing until all of your opponent's ships are sunk.
  5. Winning: The first player to sink all of their opponent's ships wins the game.

License

This project is licensed under the MIT License - see the LICENSE file for details.