Improve the readability and structural design of the code

Assignment Help Python Programming
Reference no: EM13107814

You are tasked with improving the code for the Haunted House game. Please read the associated hand-out and the code provided with your drive. 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. 

This task should take approximately 42 hours of implementation to complete. You will be given approximately 21 hours of class time to collaborate and undertake the individual tasks, use all of your time wisely.

Difficulty Level: Very Low

1. Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code (software architecture).

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.

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.

Difficulty Level: Low 

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

2. You will re-factor (update) the display of available exits and other messages to be less cryptic, i.e., instead of "NE" you will display a message similar to "there are exits to the North and East."

3.You will add functionality to quit or exit the game using an appropriate command.

4.You will update the map functionality, such that only locations that have been visited will be displayed.

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

Difficulty Level: High

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

You may be able to find existing code on the Internet for this, if you do please cite the source in the code files.

7. Add other functionality of your choice to the game. Justify its inclusion in comments next to the new functionality; get guidance and advice from your lecturers. Some ideas for this appear in the associated Haunted House hand-out.

Reference no: EM13107814

Questions Cloud

How can we understand the influences of nature and nurture : How can we understand the influences of nature and nurture, stability and change, and uniformity and variation on child development? Compare and contrast Piaget and Vygotsky and their cognitive and social learning theories.
Explanation of a chi-square test : Provide an explanation of a chi-square test. Why would you use the chi-square statistic? What type of data is used with chi square analysis?
How can the principle of informed consent be satisfied : Why might interviews and observations concerning children's behavior yield contradictory data? What questions might be interesting to ask children and other knowledgeable informants in their lives?
What is your gut reaction on how to handle this situation : Michael is a counselor working in a private practice, and he has been working with a young female client for 6 months. While on his second date with a woman, he begins to suspect that she is related to his client, maybe an aunt.
Improve the readability and structural design of the code : Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.
Scientific management and the human relations movement : Compare and contrast Scientific Management and the Human Relations Movement. On the Direct Marketing Assoction websit, what is intersting, how can companies use the website, what information is surprising and why?
Hypothesis test-christmas shopping : Before the rush began for Christmas shopping, a department store had noted that the percentage of its customers who use the store's credit card, the percentage of those who use a major credit card, and the percentage of those who pay cash are the ..
Should the assembly line be shut down : Filling Bottles A certain brand of apple juice is supposed to have 64 ounces of juice. Because the punishment for under filling bottles is severe, the target mean amount of juice is 64.05 ounces.
What was it about the zeitgeist of the times : Having read about psychology's entrepreneurs and the marketing of industrial psychology, post a considered opinion of why psychology's testing technology was widely accepted but scientific management was widely criticized. What differences existed..

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  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.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

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