A mini RPG text-based game system for Scheme

The computer science program at the Vrije Universiteit Brussel (VUB) required students to submit a programming project each year. When I was studying there, the first two years required the project to be implemented in Scheme, a dialect of LISP. The next two years I implemented the software for my projects (and Master thesis) in C and C++.

As a first programming project, I designed and implemented a Role-Playing Game framework in Scheme. The system showed a command prompt that asked what you want your character in the game to do next. Typical commands would be

bullet

Go north, east, west, south

bullet

Open door

bullet

Take candle

The world in which the adventure would take place would be specified using linked lists in Scheme. The game engine would read events from and write events to a log which recorded everything that happens in the game world.  Different events could schedule new events for the near future. After each command the clock of the world would advance by a certain predefined amount of time. The design was completely object-oriented. Implementing object-oriented behaviour in the Scheme language is quite straightforward.

Feel free to send me an email if you would like to use the system or would like to use it as a starting point for your own RPG system. I still have the source code available.