Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt the player before removing placed ships #3

Open
hairarrow opened this issue Aug 19, 2019 · 0 comments
Open

Prompt the player before removing placed ships #3

hairarrow opened this issue Aug 19, 2019 · 0 comments
Labels
good first issue Good for newcomers

Comments

@hairarrow
Copy link
Owner

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

@hairarrow hairarrow added the good first issue Good for newcomers label Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant