Improve the code for the haunted house game

Assignment Help Python Programming
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.

Reference no: EM13338957

Questions Cloud

Write a function calculating the length of the hypotenuse : (Hypotenuse Calculations) Write a function calculating the length of the hypotenuse of a right triangle (have two sides already). Determine the length of the hypotenuse for each of the given triangles.
Find the direction of the induced current in the coil : A bar magnet is held above the center of the coil with its north pole pointing down. What is the direction of the induced current in the coil
Write a loop that read positive integers from standard input : Any value that is the same as the immediately preceding value is considered a CONSECUTIVE DUPLICATE. In this example, there are three such consecutive duplicates: the 2nd and 3rd 5s and the second 6. Note that the last 3 is not a consecutive dupli..
What is the loss of kinetic energy in inelastic collision : Two manned satellites approaching one another at a relative speed of 0.300 m/s intend to dock. What is the loss of kinetic energy in this inelastic collision
Improve the code for the haunted house game : Improve the readability of the code by improving the function names, variables, and loops, as well as whitespace. Document these changes in your journal and define a win condition for the game, for example, collecting all items and returning to the..
Obtain the speed of the spaceship : The length of a moving spaceship is 28.4 m according to an astronaut on the spaceship. what is the speed of the spaceship
Find the speed of the proton relative to laboratory frame : An electron moves to the right with a speed of 0.91c relative to the laboratory frame. Find the speed of the proton relative to the laboratory frame
Use ios to properly deny icmp in your acl list : You want deny any ICMP traffic to the subnet 192.168.12.0/24 by adding an entry to existing access list 105. This existing ACL ends with a "permit all" entry, so you will add the new entry before that last entry. Use IOS to properly deny icmp in y..
What is the speed of the heavier fragment : An unstable particle at rest breaks up into two fragments of unequal mass. The mass of the lighter fragment is equal to 2.60 10-28 kg, what is the speed of the heavier fragment

Reviews

Write a Review

Python Programming Questions & Answers

  Segment that prompts the user for an arithmetic operator

The variables x and y refer to numbers. Write a code segment that prompts the user for an arithmetic operator and prints the value abtained by appying that operator to x and y.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Define three types of programming errors

Define three types of programming errors and explain with examples

  We would like to implement the lexical order

We would like to implement the lexical order for lists. For simplicity, we only consider lists of numbers, where , >= have their usual meaning.

  Arithmetic progression is a sequence of numbers

An arithmetic progression is a sequence of numbers in which the distance (or difference) between any two successive numbers if the same.

  Program that allows the user to enter the type of coin

Create a program that allows the user to enter the type of coin to be evaluated and the number of coins. The program should calculate the total weight of the coins and the height of the coins when stacked. Name the program coins.py. Use the table bel..

  Output the starting position and length

X Strings: Input a string. Output the starting position and length of the first occurrence of the longest substring of capital Xs in that string. The first letter is in position 1.

  Same directory as your program

In the same directory as your program, create a file FF1, and write into it Hello (with a space at teh end). Similarly, create a file FF2, and write into it world! (with a new line, i.e., an ENTER at the end). And create a file DD and write into i..

  The block of statements below the line of stars

The block of statements below the line of stars is where I need help correcting. The true line that needs to be corrected is p = add((getX(k),getY(r))), it needs to give points of the path using the block of information. I have somthing which I kn..

  Design a prgram using python

Design a prgram USING PYTHON that students can use to calculate what score they need on final exam to get a certan final grade for a course.

  Define a function to calculate the values

Be sure to define a function to calculate the values and print the table displaying the interest rate in the first column, the monthly payment in the second column, and the total payment in the third column. Your program should not allow the user to ..

  The program should allow the student

The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd