Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnmurray/labyrinth
Labyrinth - In Python
https://github.com/johnmurray/labyrinth
Last synced: about 1 month ago
JSON representation
Labyrinth - In Python
- Host: GitHub
- URL: https://github.com/johnmurray/labyrinth
- Owner: JohnMurray
- Created: 2010-06-05T18:29:20.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-07-25T18:09:15.000Z (over 14 years ago)
- Last Synced: 2024-10-15T23:26:01.497Z (3 months ago)
- Language: Python
- Homepage:
- Size: 410 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Adventurer Class
- the class for the main characterCreature Class
- people to fightTreasure Class
- self explanatoryWeapons Class
- also self explantory at this pointArmor Class
-self explanatoryRoom Class
- contains a monster, and a weapon or armor or treasureLevel Class
- contains all the rooms
- has commands for "move east", "move north", etc.
- made up of a multi-dimensional array of roomsSOME NOTES
- since python uses white-space for indenting code-blocks, I've been
using 4-spaces to denote indention- item ID's. Items are stored in an array (list technicall) and the `Item ID` corresponds to it's position in the list. Item ID doesn't have an "interface" per-say, but is a front-end feature that allows easy translation from front-end to specific item.
- Inspect - front end command to look at an item in more detail. This means that both ITEMS and WEAPONS need a toString method for inspection.