Refined the play again confirmation logic for improved user interaction.
Description
This PR enhances the play again confirmation process in the Rock, Paper, Scissors, Lizard, Spock game. Previously, the user experience could be interrupted by invalid inputs during the play again prompt. The updated logic now ensures a smoother interaction by continuously prompting the user until a valid response ('y' for yes, 'n' for no) is provided.
Changes Made:
Implemented a robust loop to handle repeated prompts until valid input ('y' or 'n') is received.
Enhanced error handling to prevent unintended input errors and improve user understanding.
Optimized user feedback messages to guide towards correct input choices.
This update aims to enhance usability and maintain a positive user experience throughout multiple game sessions.
PR Title
Enhance Play Again Confirmation Handling
Summary
Refined the play again confirmation logic for improved user interaction.
Description
This PR enhances the play again confirmation process in the Rock, Paper, Scissors, Lizard, Spock game. Previously, the user experience could be interrupted by invalid inputs during the play again prompt. The updated logic now ensures a smoother interaction by continuously prompting the user until a valid response ('y' for yes, 'n' for no) is provided.
Changes Made:
This update aims to enhance usability and maintain a positive user experience throughout multiple game sessions.