[GAME] Number Wizard v2

Here is my code for the end of lesson challenges…

gist.gitgub.com - Number Wizard v2

Runs entirely in the console. Allows the user to enter both min and max starting values, and the computer randomly guesses the number. For simplicity’s sake I’ve done no error checking so it will accept any keyboard character into the string, and the min value to be higher than the max.

I’ve decided to have a go at re-writing a version 3 (will edit this post with a link later). This one will have the user type in the min and max and then the computer will pick a random number, it will then be up to the user to type in guesses and follow the computers higher/lower prompts to guess the number. Basically turning it around.

(Version 1 is just the final completed version as per the course without any further challenges, additions, or changes).

EDIT: Here is my version 3 code: NumberWizard3

This time the computer picks the random number and it’s up to the player to make the guesses.