/battleship-game

⛴️💥🎮 Battleship is a strategy game where players try to sink their opponent's ships. You can play against the computer or watch two computers. The game offers customizable settings like difficulty, ship count, and shots, while tracking wins and losses. Future updates will add network multiplayer.

Primary LanguageJavaScript

Battleship Game

Description

Battleship is a classic strategic game where players take turns trying to locate and sink their opponent's ships. The goal of the game is to find and destroy all enemy ships in the shortest possible time. In this version of the game, you can play against the computer or have the computer play against another computer. In the future, I plan to introduce the option for two players to play against each other over the network.

Features

  • Play against the computer or have the computer play against itself
  • Subtle animations enhancing the visual experience
  • Customizable settings, including:
    • Difficulty level
    • Number of ships
    • Number of shots
    • Additional options such as:
      • Choosing whether ships can touch each other
      • Shots until the first miss
      • Enabling or disabling sound effects
  • The application tracks wins and losses and displays this information at the end of the game

Technologies

  • React
  • styled-components
  • React Router
  • JavaScript ES6+

Installation

To run the project locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/your-username/repository.git