A single player battleship game.
[LIVE] https://erynder-z.github.io/battleship/
The game logic was build following test-driven development using the Jest JavaScript testing framework.
The interface was build using a custom created CSS library powered by SASS.
- Place your fleet on the gameboard using the buttons under the ships.
- Ships can be aligned horizontally or vertically.
- Ships cannot be placed outside the gameboard.
- The game starts when all ships have been placed.
- Click at any field on the enemies gameboard to fire ashot.
- Misses will be indicated in red, hits will be indicated in green.
- The AI will randomly fire at your board.
- Win the game by sinking all enemy ships before the AI sinks your fleet!