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.
The game in action, with ships placed and gameplay in progress.
- 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.
- Clone the repository:
git clone https://github.com/davymaish/battleship-game.git
- Open the
index.html
file in your preferred web browser.
- Open the game in your web browser.
- You have 60 seconds to sink at least two battleship!
- Each battleship takes 3 grid boxes.
- You must hit a ship thrice to sink it (hit all 3 grids boxes)
- Guess ship coordinates in (YX) format.
Contributions are welcome! If you find any issues or have ideas for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.
For any inquiries or feedback, feel free to contact me via:
- Website: davymaish.github.io
- Email: [email protected]