Lab 7: Review lab
The goal of this lab is to debug the game and add a few more features.
This should help review for the test.
Here's what needs to be done:
- First, debugging. Try playing the game just as it is; you won't get very far.
Once you fix the immediate problem, try also looking at an inventory that is empty.
Then you need to develop the sample game a little more to test food, etc.
- Make a simpler way to add a door-- one method that will connect two rooms
bidirectionally.
- The parser needs fixing; currently it adds a whole new set of room commands
and inventory commands each turn.
- Add as many of the following kinds of items as possible: keys; locked doors;
chests (items that can't move but can contain something); treasure
(obtaining which will end the game).
- The player's health points should decrease somehow (turns, or movement) and
end the game when they reach 0.
Thomas VanDrunen
Last modified: Wed Jan 24 16:01:43 CST 2007