[Tutor] Re: Help with a game

Lee Harr missive at hotmail.com
Tue Nov 11 01:17:06 EST 2003

>Hey guys, i'm in a programmng class and i need some help.  I made a game  
>based off of the pygame example "Chimp" and it won't run.  Maybe a little 
>look over to see if i've missed something or if i've made a mistake.

I see two problems:

1. Your main() function is at the same indentation as methods in class
ship. Push that one out to the left.

2. Python does not automatically run the main() function. The idiom
normally used to do that is:

if __name__ == '__main__':

Put that right at the end of your program.

MSN 8 with e-mail virus protection service: 2 months FREE* 

More information about the Tutor mailing list