Re: [Tutor] Functions Calling Functions

2005-02-25 Thread Kent Johnson
Kent Johnson wrote: I would use a central dispatcher. Each chapter function could return a token indicating which chapter is next, or it could return the actual next chapter function. Look here for an *extensive* example of this style: http://homepage.mac.com/spkane/python/paranoia.py Kent __

Re: [Tutor] Functions Calling Functions

2005-02-25 Thread Kent Johnson
Luke Jordan wrote: Hi - I'm working on a command-line game. Is there anything wrong with having each 'chapter' of the game be a function that links to other chapters by calling them? I only ask because when a recent traceback returned about 40 lines worth of error message, I realized that the fun

Re: [Tutor] Functions Calling Functions

2005-02-25 Thread Bill Mill
Luke, On Fri, 25 Feb 2005 11:04:11 -0800, Luke Jordan <[EMAIL PROTECTED]> wrote: > Hi - > > I'm working on a command-line game. Is there anything wrong with > having each 'chapter' of the game be a function that links to other > chapters by calling them? I only ask because when a recent tracebac

[Tutor] Functions Calling Functions

2005-02-25 Thread Luke Jordan
Hi - I'm working on a command-line game. Is there anything wrong with having each 'chapter' of the game be a function that links to other chapters by calling them? I only ask because when a recent traceback returned about 40 lines worth of error message, I realized that the functions are all bein