Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Guessing Game Help

Author
Message
Cameron
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: In Your Closet...
Posted: 10th Aug 2005 03:59
Ok Heres the code


Ok Everything works good but on the greater than it will minus the number of guesses but when i do it again it stays at 2 wat command will update it so it shows current guesses

master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 10th Aug 2005 05:49
Put the piece of code: numofguesses = 3 before the repeat code. Otherwise, it will keep resetting itself to 3 no matter what.

Cameron
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: In Your Closet...
Posted: 10th Aug 2005 06:48
Oh lol, no brainer thanks it works

the wizard
19
Years of Service
User Offline
Joined: 12th Aug 2005
Location:
Posted: 13th Aug 2005 01:40
Instead of:
number = 65
Try:
number = int(rnd(1)*1000000)

This will give you a number up to one million.
Try using 26 guesses.
It is possible to win in 26 guesses or less every time so more guesses are not needed.

Login to post a reply

Server time is: 2024-11-27 21:38:08
Your offset time is: 2024-11-27 21:38:08