text adventure game module for Python

Paul Wright -$P-W$- at verence.demon.co.uk
Sat Jul 20 11:38:54 EDT 2002


In article <ujh9424978qbf4 at corp.supernews.com>,
Michael Bauers <me at michaelbauers.com> wrote:
>I wrote a module that reads a file to create a parsing system, and then
>provides an interpreter to invoke methods based on matching input against
>the sentences in the file.
>
>e.g.'s
>   "drop" object, player.drop(obj)
>   "look", player.loc().look()
>   "north", player.loc().move_north(player)

This sounds very like the system that the MOOP system uses. MOOP is a
Python based MUD. From what I remember, it matches commands against
methods on objects representing the player and things in the current
room. There's not been much development on it lately from what I can
see, but you might find it useful.

http://moop.sf.net/

-- 
Paul Wright | http://pobox.com/~pw201 |



More information about the Python-list mailing list