Battleship Game

Source code: https://github.com/gofhilman/battleship
The Battleship Game is a classic strategy game implemented as a web application. Players can compete against a computer or another human player by strategically placing their ships on a grid and taking turns to attack the opponent's grid. The game ends when all ships of one player are sunk.
Features
- Single-player mode: Play against a computer opponent with intelligent attack strategies, including the use of the Breadth-First Search (BFS) algorithm for targeted attacks.
- Multiplayer mode: Play against another human player on the same device.
- Ship placement: Drag and drop ships onto the grid or randomize their positions.
- Game status tracking: Visual indicators for hits, misses, and ship statuses.
- Game reset: Easily restart the game after completion.
- Responsive design: Optimized for various screen sizes.
Tech stack
- Build Tools: Webpack
- Testing: Jest
- State Management: PubSub-JS