battleship
Step 1: Get started by reading through the battleship.js file. All that you need to solve the assignment is described in comments
Step 2: Use the for-loops defined in the code to generate a grid.
Step 3: Attach event-listeners to each square in the grid and trigger the guess() function on click
Step 4: Add the logic that's needed for the game to be playable
Step 5: Play! Make sure you can win
Last updated
Was this helpful?