A browser-based version of the board game Battle Ships. The game starts with your ships on the board, the number depending on the selected level of difficulty. You can drag them around using the mouse, and double-click to turn it by 90°. Once you are satisfied with your distribution, start the game by initiating an attack by clicking over any empty cell on the computer board.
You can even watch in real-time the strategy that the computer is using at that moment. Dark red cells are those where the computer thinks it's more probable to find a ship, and the lighter or white ones are where she thinks it's less probable to hit a ship.
- HTML
- SASS (I like indentation based languages)
- Javascript
- ☕ Lots of coffee...
After cloning the repository to your local development machine, type this on the command line:
npm install
npm start
Enter on the command line:
npm run build
Application will be built in the dist directory.
Enter on the command line:
npm test
- Improve use in small screen devices
-
Create different levels of difficulty
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Creative Commons Attribution 4.0 International (CC BY 4.0).
Please don't hesitate to contact me at 📧 contact@oscarnava.me if you have any questions, comments, etc. I would love to know what's on your mind!