Skip to content
#

battleship

Here are 318 public repositories matching this topic...

hairarrow
hairarrow commented Aug 19, 2019

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 behavio

Improve this page

Add a description, image, and links to the battleship topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the battleship topic, visit your repo's landing page and select "manage topics."

Learn more