Your code reset the random number every tries.
So its impossible to find the number. If you type 5 its to high if you type 4 its too low
The while loop is to calculate the number of tries.
But thank you for this part of the code: check.count = getattr(check, 'count', 0)
count = check.count + 1
check.count += 1
I just tried it and its working fine.
So its impossible to find the number. If you type 5 its to high if you type 4 its too low
The while loop is to calculate the number of tries.
But thank you for this part of the code: check.count = getattr(check, 'count', 0)
count = check.count + 1
check.count += 1
I just tried it and its working fine.