This is an implementation of The Odin Project's plain JS Battleship project.
The game loop was written using Test Driven Development. Its test suite comprises 55 tests. As a result, the game is fully functional without a DOM (and the DOM is decoupled from the internal game).
- Flexible, intuitive board preparation. Either manual or automatic.
- The game is played against an AI. It's not super smart, but it's definitely possible to lose to it if you're unlucky.
- Mobile and desktop friendly
- No production dependencies
- Includes non-intrusive, functional CSS animations
- The ship rotation hotkey doesn't work if a second ship placement button is pressed before placing a ship.
- Favicon: game-icons | Creative Commons 3.0 BY