Skip to content

preetsingh10/battleship

Repository files navigation

🛳️ Battleship Game

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.


🎮 Live Preview

👉 Play it now:
https://preetsingh10.github.io/battleship/


⚙️ Features

✅ 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


🛠️ Tech Stack

  • JavaScript (ES6)
  • Webpack for bundling
  • HTML & CSS (no libraries or frameworks)
  • GitHub Pages for deployment

🚀 Getting Started Locally

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published