Console input. Let's user guess a number which looks like the intent here.
Classic app would have a loop that let's user keep trying to guess the number. App ends when user guesses randomly generated number or user enters Q to quit.
Fancy would be to add "I don't know what that means" if user entered a value not in the 0-6 range and that is not Q.
6
u/0dinscan Jul 17 '26
else has enterd the chat....
4
u/Confident-Ad5665 Jul 17 '26
Missing a ReadLine prompt, and possibly an outer loop unless you only get 1 try before the app ends.
1
u/Numerous-Occasion247 Jul 17 '26
Let’s assume you’d have a dice with 20 fields and 6 is the only one winning how would you solve this ?
2
u/OneWay3009 Jul 19 '26
I wish there was a better way to say that anything
elsethat isn't a 6 means "try again"