A classic battleship game built with React, TypeScript, styled-components and Vite.
🔗 Live demo: https://codingminer.github.io/battleship-game/
- 🎯 Practice Mode — Find and sink all hidden ships on the board
- ⚔️ Battle Mode — Place your ships and battle against a computer AI
- 🤖 Three AI difficulty levels (easy, medium, hard)
- 🖱️ Drag and drop ship placement with auto-place option
- 📱 Responsive design across mobile, tablet and desktop
- 📦 Node.js 18+ and npm
npm install
npm run devOpen http://localhost:5173 in your browser.
npm run buildnpm run test:run # unit tests, run once
npm run test # unit tests, watch mode- ⚛️ React 19
- 📘 TypeScript
- 💅 styled-components
- ⚡ Vite
- 🧪 Vitest