When the user inputs something other than 1, 2, or 3 the game goes into an inifinite loop and the user must hit ctrl +c to terminate the program.
Reproduction
To reproduce this bug enter any number other than 1, 2, 3 when playing the game.
Expected behavior
Instead of going into an infinite loop, the code should raise an error and allow the user to input another choice instead of printing the error infinitely.
@Islam-Alattar27 please only address this issue in a new branch and open a pull-request when it is ready for review. This is a really nice project to start experimenting with the basics of git. Well done 👍🏻
Issue
When the user inputs something other than 1, 2, or 3 the game goes into an inifinite loop and the user must hit
ctrl +c
to terminate the program.Reproduction
To reproduce this bug enter any number other than 1, 2, 3 when playing the game.
Expected behavior
Instead of going into an infinite loop, the code should raise an error and allow the user to input another choice instead of printing the error infinitely.