[Tutor] Making a Computer Guess My Number

Garland W. Binns garland.binns at gmail.com
Fri Jan 6 21:05:02 CET 2012


Hello, I have been experimenting with trying to rewrite the following
script so that a computer tries to guess a number I'm thinking of:
https://gist.github.com/1572067

I was thinking that basically I need to create a while loop, and somehow
redefine the randrange depending on whether or not I provide raw input
saying that the guess is higher or lower.

 Can anyone offer any suggestions?

--
Garland W. Binns
Facebook <https://www.facebook.com/garland.binns> /
LinkedIn<http://linkedin.com/in/garlandbinns>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120106/347e243c/attachment.html>


More information about the Tutor mailing list