PyVerse icon indicating copy to clipboard operation
PyVerse copied to clipboard

Update rock-paper-scissors game

Open Srish-ty opened this issue 3 years ago • 0 comments

The errors and bugs we found :

  • There wasn't any error handling for invalid selection.
  • if user chooses more than 2, the code crashes with error, index out of range.
  • the game could be played only once

Changes and features we've introduced :

  • Handled errors.
  • If chosen invalid selection or out of range number, code asks user to input again, instead of crashing code.
  • game can be played multiple times in a row
  • until user wants to quit. Then they'll have to type q

Have a look at the game after these changes, We hope you'll like it.

Srish-ty avatar Oct 21 '22 11:10 Srish-ty