Play the game here:
https://sameeksha-dalvi.github.io/battleship-game/
This project is a browser version of the classic Battleship game.
It was built as part of the JavaScript curriculum from The Odin Project.
The goal of this project was to practice:
- JavaScript modules
- Game logic design
- Test Driven Development (TDD)
- DOM manipulation
- Webpack bundling
- Shuffle the ships to randomly place your fleet.
- Click on the enemy grid to attack.
- The computer will take its turn after you.
- The first player to sink all enemy ships wins.
- Player vs Computer gameplay
- Ship placement phase
- Hit and miss animations
- Turn indicator
- Winner screen with restart option
- Sound effects and fireworks
- Responsive design for mobile
- HTML
- CSS
- JavaScript (ES6 Modules)
- Webpack
- Jest (for testing)
Sound effects used in this project are from free online sound libraries.

