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

Error Handling and User Experience Improvement #239

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nilkh75
Copy link
Contributor

@nilkh75 nilkh75 commented Jun 25, 2024

PR Title

Enhanced Error Handling and User Experience in Rock Paper Scissors Game

Summary

Implemented error handling and improved user experience in the Rock Paper Scissors game to handle invalid user inputs gracefully.

Description

This pull request introduces enhancements to the Rock Paper Scissors game to improve error handling and user interaction. Previously, the game did not adequately handle invalid user inputs, which could lead to unexpected crashes or errors. The changes made ensure that the game provides clear instructions, validates user inputs effectively, and delivers informative feedback to the user.

The changes are as follows:

  • Implemented try-except blocks to handle ValueError for invalid user inputs.
  • Moved input validation logic inside the try block to prompt users for valid inputs without disrupting the game flow.
  • Updated user prompts and messages to guide users on how to play and handle errors gracefully.

Thank You,

@DhanushNehru
Copy link
Owner

Please resolve merge conflicts @nilkh75

Copy link
Collaborator

@hasan-py hasan-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants