Hi,
I went a bit further and made a couple of improvements to this game:
-
added Difficulty screen - now you can choose between Easy, Medium and Hard.
Each difficulty level differs through a number of guesses that computer has plus an “AI” setting. -
The guessing algorithm is a bit more sophisticated. It’s randomizing numbers, but keeps close to the half of the remaining range, so it’s not blindly random. The random range (expressed as a fraction of the remaining range) is what changes per difficulty.
-
Each time it guesses a number, a check is made and buttons disabled to prevent giving wrong clue to computer. So, for example you can’t say your number is higher than 1000 or lower than 25, if you previously said it was higher than 24. So, sometimes you are left only with the ‘Correct !’ button to click! No more cheating on the CPU!
-
The game now remembers the Score after a number of games. (and let’s you reset it too).
To achieve 1) and 4) I had to look up for preserving data between scenes, so that was a good thing to learn.
And just to sound a bit geeky:
Known bugs: Arial Bold font renders bit weirdly in WebGL for some reason.
Link to the game - hope you enjoy it:
Game Wizard UI Pro