https://github.com/johnmurray/labyrinth
Labyrinth - In Python
https://github.com/johnmurray/labyrinth
Last synced: 8 months ago
JSON representation
Labyrinth - In Python
- Host: GitHub
- URL: https://github.com/johnmurray/labyrinth
- Owner: JohnMurray
- Created: 2010-06-05T18:29:20.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-07-25T18:09:15.000Z (over 15 years ago)
- Last Synced: 2025-01-29T23:41:36.723Z (9 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 character
Creature Class
- people to fight
Treasure Class
- self explanatory
Weapons Class
- also self explantory at this point
Armor Class
-self explanatory
Room Class
- contains a monster, and a weapon or armor or treasure
Level Class
- contains all the rooms
- has commands for "move east", "move north", etc.
- made up of a multi-dimensional array of rooms
SOME 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.