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

  Interaction between the customer and the machine

In Python:Simulate a cash register or ATM including the interaction between the customer and the machine (i.e. assume that you are automating the responses)

  Two-dimensional word puzzle

Write a python function called find_words that finds and prints the list of valid words in a two-dimensional word puzzle

  Write a program that uses a bar

Write a program that uses a bar chart to display the percent-ages of the overall grade represented by the project, quizzes the midterm exam and the final exam

  The function should return the day name (''su'',''mo''..etc)

Write the function day(d,m) where m is an integer from 1 through 12 expressing a month, and d is an integer from 1 through 31 expressing the day part of a date in 2014.

  Let ll be a list of integers

Let LL be a list of integers. Use list comprehension to produce teh following lists. Each one should just take onel line. Anser questions as two comments.

  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 ..

  What are the issues assciated with top-down analysis

what are the issues assciated with top-down analysis please explain?

  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..

  Program to do the enciphering

Write a program to do the enciphering. It should prompt the user for a message, and print out both the entered message and its corresponding ciphertext.

  Write a loop that counts the number of space

Write a loop that counts the number of space characters in a string. Recall that the space character is represented a

  Write a function comp(d1,u1,d2,u2)

Write a function comp(d1,u1,d2,u2)

  Design a function that accepts an integer

Design a function that accepts an integer argument and returns the sum of all the integers from 1 up to the number passed as an argument. For example, if 50 is passed as an argument, the function will return the sum of 1, 2, 3, 4, . . . 50. Use recur..

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