[Tutor] Guessing Game Program
drbedsole at gmail.com
Fri Mar 25 05:55:33 CET 2011
On Fri, Mar 25, 2011 at 12:53 AM, Donald Bedsole <drbedsole at gmail.com> wrote:
> Hi Malcolm :-)
> On Fri, Mar 25, 2011 at 12:37 AM, Malcolm Newsome
> <malcolm.newsome at gmail.com> wrote:
>> Hey Don!
>> I posted an eerily similar request to another python group about two weeks
>> ago! I, too, am very new to programming and the guessing game was my first
>> shot at writing a script from scratch!
> I got interested in writing a guessing game because I was trying to
> fix a C++ program that wouldn't compile with g++ because they were
> using a non-standard randomizer() function. (I really don't know C++,
> but I thought trying to fix the problems with someone else's program
> might help me to learn). I didn't make much headway in understanding
> how to generate random numbers in C++, but it made me curious about
> how to do it in Python. Python seems much easier!
>> Below is my code (improved with some help from others). I still would like
>> to make some improvements to it also. But, perhaps there will be some ideas
>> in it that can help you as well! Looking forward to learning and growing!
>> All the best!
> Thanks for posting your code. I will look at it later (closing in on
> 1:00 AM here) to see what I can learn from it. Tutorials are great,
> but it seems looking at code makes it easier for me to learn.
> Thanks for taking the time to post, and I hope you're successful in
> your programming studies.
More information about the Tutor