Number Wizard with keyboard input for max and min ranges, random guess and total guess counter

Hi guys, here my personal solution for the number wizard with selectable ranges, random guess between the maximum and minimum range and a small guess counter to check how many tries does the computer need to reach the solution. I figured out a way to introduce the values for the max and min ranges using the console which is maybe a bit clamsy, but it worked for me, however I would like to read your opinions about it, because I had to write almost all the code in the Update function to implement this methodology. I also shifted the values of max and min in case that max<min, which would not make any sense I hope you like it and hope to get also feedback from your side with new ideas, specially for the implementation of the keyboard input. Have fun learning guys ;). Awesome course btw.

https://pastebin.com/VrsNgyTS

2 Likes

Works great!

Thanks! :slight_smile:

Privacy & Terms