freyxfi / AllInHacktoberfest

AllInHacktoberfest Was Created in 2022 and Now going on It has several catagories Which Include Linux/Cybersecurity/webDev/Game Development
https://frey0xd.tech/hacktoberfest/
15 stars 41 forks source link

added a validation for user input #2

Closed DerMoehre closed 2 years ago

freyxfi commented 2 years ago

thanks but there are more bugs now well will open another issue soon

DerMoehre commented 2 years ago

thanks but there are more bugs now well will open another issue soon

what is the unwanted behavior?

freyxfi commented 2 years ago

With the while loop it's going to loop out in the terminal 🙂 if user enters anything except 0,1 or 2 you try this by yourself by entering the value 3 and the reason is that the last else statement will not be executed because the previous elif statements will takes the lead.

On Fri, Oct 21, 2022, 9:07 PM Moritz Dahm @.***> wrote:

thanks but there are more bugs now well will open another issue soon

what is the unwanted behavior?

— Reply to this email directly, view it on GitHub https://github.com/LastDeadlock/hacktoberfest/pull/2#issuecomment-1287133954, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARV7YHAJTP4K7ZXYC63SFZDWEK2EXANCNFSM6AAAAAARLIS5SM . You are receiving this because you modified the open/close state.Message ID: @.***>

DerMoehre commented 2 years ago

ah okay, so you want to end the game, if the user enters a wrong number? With the while loop, the game will just keep asking the user for correct input

freyxfi commented 2 years ago

Yes, that's right.

On Fri, Oct 21, 2022, 9:25 PM Moritz Dahm @.***> wrote:

ah okay, so you want to end the game, if the user enters a wrong number? With the while loop, the game will just keep asking the user for correct input

— Reply to this email directly, view it on GitHub https://github.com/LastDeadlock/hacktoberfest/pull/2#issuecomment-1287152306, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARV7YHAZM2IEJ4PA7APN253WEK4FXANCNFSM6AAAAAARLIS5SM . You are receiving this because you modified the open/close state.Message ID: @.***>