Islam-Alattar27 / Game_1

Game( R - P - S )
0 stars 0 forks source link

Infinite loop when user inputs incorrect input #1

Open AGKhalil opened 1 week ago

AGKhalil commented 1 week ago

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.

Screenshot 2024-06-28 at 11 08 04

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.

AGKhalil commented 1 week ago

@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 👍🏻