Skip to content

This is a simple Battleship game implemented in HTML5, CSS, and JavaScript. The game allows player to hit the ships by guessing their locations on the map.

License

Notifications You must be signed in to change notification settings

davymaish/battleship-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Battleship Game

This is a simple Battleship game implemented in HTML5, CSS, and JavaScript. The game allows player to hit the ships by guessing their locations on the map. Ships are randomly placed on the map grid on game lunch.

Gameplay Screenshot The game in action, with ships placed and gameplay in progress.

Features

  • Responsive design, compatible with different screen sizes
  • Animated ship placement and gameplay
  • Interactive map grid for ship placement and guessing
  • Real-time feedback on hits and misses
  • Time limit and real-time update of remaining time.

Installation

  1. Clone the repository: git clone https://github.com/davymaish/battleship-game.git
  2. Open the index.html file in your preferred web browser.

How to Play

  1. Open the game in your web browser.
  2. You have 60 seconds to sink at least two battleship!
  3. Each battleship takes 3 grid boxes.
  4. You must hit a ship thrice to sink it (hit all 3 grids boxes)
  5. Guess ship coordinates in (YX) format.

Contributing

Contributions are welcome! If you find any issues or have ideas for improvements, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Contact

For any inquiries or feedback, feel free to contact me via:

About

This is a simple Battleship game implemented in HTML5, CSS, and JavaScript. The game allows player to hit the ships by guessing their locations on the map.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published