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.
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:
try-except
blocks to handleValueError
for invalid user inputs.try
block to prompt users for valid inputs without disrupting the game flow.Thank You,