Battleship Game
L1In this project, you'll create the battleship game. In the game, players will click on cells to reveal either a battleship image or the image of water. You'll create the complete layout of the game along with the winning and losing conditions. To get started, please scroll down and look at the tasks listed below.
Project Preview
Things you need to know:Selecting elements, hiding elements, showing elements, handling events
Tasks
Task 1: Background color & Heading
Task 2: Battleship Grid with Borders and Reset Button
Task 3: Displaying the hidden content when you click on any of the Grid card
Task 4: Adding rules on the page
Task 5: Winning/Losing Alert
More projects