Skip to content

chch-python-meetup/2021-10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Python Coding Challenge - Oct 2021

The Challenge

Zork is a classic text adventure game created around 1977. We are going to implement a basic Zork-like game engine using data from the original game.

The game was original written in a language called MDL and then converted to ZIL. Fortunately, JSON versions of the game data have been created and published on Github. The room data is available here.

Write a program that uses this to accept movement commands (e.g. "north", "east", "southwest") to allow movement around the rooms from the original Zork game. Be sure to handle directions which are defined but don't lead anywhere (e.g. "The door is boarded and you can't remove the boards.").

Print out the description and long description (if any) of each room when the player enters it.

Extension Challenges

Once you have basic movement working, take the game further. Some ideas:

  • Support aliases for movement directions (e.g. "n", "e", "sw")
  • Add support for the "brief", "superbrief" and "verbose" commands.
  • Add support for other commands.
  • Add support for objects or other game aspects such as objects. See the other JSON files.

A list of Zork commands can be found here: https://zork.fandom.com/wiki/Command_List

Releases

No releases published

Packages

No packages published

Languages