Welcome to my implementation of the classic Battleship game, built as part of The Odin Project JavaScript curriculum!
This project is made with pure JavaScript (no React, no frameworks), bundled using Webpack, and styled with custom modern CSS.
👉 Play it now:
https://preetsingh10.github.io/battleship/
✅ Player vs. Computer gameplay
✅ Click-to-place ships with spacebar to rotate
✅ Visual feedback for valid and invalid ship placements
✅ Animated hit and miss indicators
✅ Game-over detection with a winner message
✅ Clean, futuristic, responsive design
✅ Deployed live using GitHub Pages
- JavaScript (ES6)
- Webpack for bundling
- HTML & CSS (no libraries or frameworks)
- GitHub Pages for deployment
Follow these steps to run the project on your local machine:
1️⃣ Clone the repository:
git clone https://github.com/preetsingh10/battleship.git
cd battleship