May-07-2019, 03:22 PM
(This post was last modified: May-07-2019, 03:22 PM by michalmonday.)
I noticed few things:
1.
2.
3.
4.
5.
6.
1.
rand_guess()
function is not called at all2.
generator()
function is called multiple times throghout the game, constantly changing the actual number (this shouldn't happen, it should be called once before each game and the result should be kept and used for comparison with the actual guesses)3.
generator()
function has the upper limit of 10, the description of the game says that number up to 99 should be picked4.
number
variable is never initialized5.
elif guess != generator()
is never satisfied because previous conditions include ">" and "<"6.
generator()
function is called before being initialized (you can just cut/paste definition of that function over the main "while guesses" loop