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

Player Name Prompt Error Handling #5

Closed
WinnieCWu opened this issue Jan 11, 2022 · 2 comments
Closed

Player Name Prompt Error Handling #5

WinnieCWu opened this issue Jan 11, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@WinnieCWu
Copy link
Owner

Expected Behavior

If the prompt for player name is left blank or cancelled, a new prompt should be re-requesting the player's name

Current Behavior

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

Possible Solution

Create function getPlayerName() that will loop until a valid response can be returned

@WinnieCWu WinnieCWu added the bug Something isn't working label Jan 11, 2022
@WinnieCWu WinnieCWu self-assigned this Jan 11, 2022
@WinnieCWu
Copy link
Owner Author

Created function getPlayerName() to bypass the issue

@WinnieCWu
Copy link
Owner Author

Resolved player name prompt issue

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