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

Blank/ null response issue for player name prompt #5

Closed
MattKolbach opened this issue Dec 12, 2021 · 0 comments
Closed

Blank/ null response issue for player name prompt #5

MattKolbach opened this issue Dec 12, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MattKolbach
Copy link
Owner

MattKolbach commented Dec 12, 2021

Expected Behavior

  • If prompt for player name is left blank, that answer is stored as the player's name.
  • If the prompt is cancelled, "null" is stored as the player's name

Possible Solution

  • Create function getPlayerName() that will loop until a valid response has been returned
@MattKolbach MattKolbach added the bug Something isn't working label Dec 12, 2021
@MattKolbach MattKolbach self-assigned this Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant