You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a player is placing ships, the "Place Randomly" button will remove all ships from the board, regardless of what the player has added.
Possible Solutions
Easy
Check if there are any placed ships before executing "Place Randomly". If there are any ships, prompt the player and let them know that this action will remove all currently placed ships
Medium
Refactor the behavior of "Place Randomly" so that placed ship positions are saved and only unplaced ships are placed randomly
Medium, Additional Feature
Either one of the prior solutions, but also add a feature so you can place each individual ship randomly
The text was updated successfully, but these errors were encountered:
When a player is placing ships, the "Place Randomly" button will remove all ships from the board, regardless of what the player has added.
Possible Solutions
Easy
Check if there are any placed ships before executing "Place Randomly". If there are any ships, prompt the player and let them know that this action will remove all currently placed ships
Medium
Refactor the behavior of "Place Randomly" so that placed ship positions are saved and only unplaced ships are placed randomly
Medium, Additional Feature
Either one of the prior solutions, but also add a feature so you can place each individual ship randomly
The text was updated successfully, but these errors were encountered: