Python-Scripts icon indicating copy to clipboard operation
Python-Scripts copied to clipboard

Error Handling and User Experience Improvement

Open nilkh75 opened this issue 1 year ago • 1 comments

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,

nilkh75 avatar Jun 25 '24 10:06 nilkh75

Please resolve merge conflicts @nilkh75

DhanushNehru avatar Jun 30 '24 12:06 DhanushNehru