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 handling for the player-name prompt #5

Closed
Craig5117 opened this issue Oct 16, 2020 · 1 comment
Closed

Blank/null response handling for the player-name prompt #5

Craig5117 opened this issue Oct 16, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Craig5117
Copy link
Owner

Craig5117 commented Oct 16, 2020

Expected Behavior

If the prompt for the player's name is left blank or cancelled, a new prompt should request the player's name again.

Current Behavior

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

Possible Solution

  • Create a function getPlayerName() that will loop until a valid response is entered.
@Craig5117 Craig5117 added the bug Something isn't working label Oct 16, 2020
@Craig5117 Craig5117 self-assigned this Oct 16, 2020
@Craig5117 Craig5117 changed the title Bug: Blank/null response handling for the player-name prompt Blank/null response handling for the player-name prompt Oct 16, 2020
@Craig5117
Copy link
Owner Author

Fixed the bug. It works as expected now.

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