Reference no: EM13338957
You are tasked with improving the code for the Haunted House game. Please read the associated handout and the code provided on Moodle. Although the implementation of your code is your own work, the ideas for which to implement and improve the code are free for public discussion. You are free to use code from the Internet or other sources but please cite the sources in the relevant program code. You will be given debate time and implementation time in class where we can collaborate on ideas and improve our understanding of coding in order to complete the tasks. You must document your undertakings in a journal, this will include your designs, bug fixes and all other elements associated with the implementation of this game.
1. Improve the readability of the code by improving the function names, variables, and loops, as well as whitespace. Document these changes in your journal.
2. Remove any runtime, sematic, and syntax errors. Make comments in the code and list the number of errors you have corrected and how you corrected each specific error. Document your major debugging tasks in your journal.
3. Improve the game by including multiple commands that invoke the same functionality. For example the commands "LIST," "INVENTORY," "ITEMS" and "CARRYING" all list the items being carried by the player. You should be able to do this for all of the commands. However, you may limit your improvement to five of the commands. Improve the game by allowing players to enter mixed case input. You should document which additional commands can be used in your journal.
4. You will add functionality to the game in the form of a Dungeon Master who will explain the task to complete the game (explain the win condition in a conversational style). You will define a win condition for the game, for example, collecting all items and returning to the entry point (location 0).
5. You will re-factor (update) the display of available exits and other messages to be less cryptic, ie, instead of "NE" you will display a message like, "there are exits to the North and East."
6. You will add functionality to quit or exit the game using an appropriate command.
7. You will update the map functionality, such that only locations that have been visited will be displayed.
8. You will have functionality to "Save" the game state so that the game can be continued at a later stage. You will implement the functionality for "Loading" the saved game. Implement separate commands to save and load the game.
9. You will implement one of the following:
a. Improve the game by adding more features, for example you can examine more items, more props etc .You may implement this using more lists regarding items and props, remember, you should check if the object is being carried or in the location of the player.
b. Introduce random monster encounters and battles, for instance in the Haunted House you could introduce vampires, ghosts, werewolves, etc. You may have to look at role-playing combat systems that already exist, try to use existing combat systems.
c. Introduce a non-player character that uses AI to communicate with players (see the Eliza project online). You may be able to find existing code on the Internet for this, if you do please cite the source in the code files.