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
__
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
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
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