Difference between revisions of "Section D 2019"
(Created page with "Section D of your Unit 1 exam will focus on the skeleton program and improvements to it. The question will specify which part of the program is to be used, and what you need t...") |
(→Improvements) |
||
Line 12: | Line 12: | ||
[[Add a command to Eat (you start with an apple in the items)]] | [[Add a command to Eat (you start with an apple in the items)]] | ||
− | [[Add a command to | + | [[Add a command to Drink (you start with a flask in the items)]] |
[[Add a command to Save to a new gme file]] | [[Add a command to Save to a new gme file]] | ||
[[Limit the number of items that can be held in the inventory]] | [[Limit the number of items that can be held in the inventory]] |
Revision as of 14:01, 10 December 2018
Section D of your Unit 1 exam will focus on the skeleton program and improvements to it. The question will specify which part of the program is to be used, and what you need to change. I will create a list of potential improvements, and over time we code each one and document it.
Improvements
Count the number of player instructions
Add a Help command to display a list of possible commands
Add to the examine method the ability to examine the room, ie to repeat the description and items
Add a Drop command to drop an item in the inventory
Add a command to Eat (you start with an apple in the items)
Add a command to Drink (you start with a flask in the items)