battleship
Last updated
Was this helpful?
Last updated
Was this helpful?
The assignment is to re-create the popular board game battleship game using JavaScript.
Learn about the game and what the rules are here: )
All the code the functions that are needed are outlined in the JS-file. No need to add more unless you want to. Read the comments in the code carefully.
References for the methods in JS that are needed for this step:
A player should be able to sink all the ships, look in the js-file for the ship positions to make this easier to test.
BONUS tasks (optional):
Add graphics, animation
Add support for randomizing the grid
Add support for resetting the game without having to reload the webpage
Add support for multiplayer