✏ Create a battleship game for one person only with Vanilla JS. Inspired in ./preview.gif.
📄 Running a web-server using the following command in the Gitpod workspace terminal to preview the project:
pip3 install flask && python3 server.py
https://projects.breatheco.de/interactive-coding-tutorial/intermediate/battleship-vanillajs
https://github.com/breatheco-de/exercise-battleship-vanillajs
- The user can choose if ships will be placed by default or randomly before the game start.
- The positions of the ships can be revealed by clicking on the Show Ships button.
- The user can restart the game by clicking on the Restart button.
- The user can be fire by clicking in each box of the board game or by clicking on the Fire button and introducing the x and y coordinates in comma separated format.
- The game will end when the user has sunk all the ships.
- The user will lose the game if he misses all the shots before sinking all the ships.
https://raw.githack.com/m4n50n/battleship_game/main/index.html
💻 Jose Clemente García Rodríguez (https://github.com/m4n50n)