techcsispit / Battleship-Game-JS

This is a Battleship Game built using HTML, CSS, and JavaScript. It simulates the classic battleship experience where players take turns guessing the location of their opponent’s ships.
0 stars 3 forks source link

Game Can Be Played Without Adding Ships to the Board #1

Closed Dash10107 closed 2 weeks ago

Dash10107 commented 2 weeks ago

Problem: Currently, the game allows players to start without placing any ships on the board. This breaks the core gameplay mechanic, as the game should not proceed without all ships being placed.

Steps to Reproduce: Start a new game. Begin without placing any ships. Notice that the game proceeds without ships on the board. image

Expected Behavior: The game should validate that all ships have been placed on the board before allowing the player to start the game.

Suggested Fix: Implement a check to ensure that all ships are placed before allowing the game to start.

Dash10107 commented 2 weeks ago

I would like to work on this issue