Part-1for task 1 list the things you changed and the

Assignment Help Python Programming
Reference no: EM13376231

Part-1

For task 1: List the things you changed and the purpose of changing it. Good reasons include making code easier to read and easier to navigate when modifying it.

For task 2: List the errors you found and how you fixed it.

In this document include your name

Author: (Your name)

Task 1 (under Very Low Difficulty)

1. (A possible example)For readability, all variable names were changed to start with a lowercase letter (e.g. VerbList was changed to verbList) and all function names were changed to start with a uppercase letters

2. Other things you did
Task 2 (under Very Low Difficulty)

1. There was a bug in the following function.

defDisplayListOfVerbs():
print(VerbsArray)

There is no such variable as VerbsArray, to print out the list of verbs available, it was changed to display the list 'VerbList'

defDisplayListOfVerbs():
print(VerbList)

2. Other bugs you found

Part-2

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

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.

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

Note: The current win condition is to have a score of 17 and be in location 57. This is really obscure. It is possible with a condition like this when it is not explicit that players will never win. This is often called a dead man walking scenario.

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. 

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.

Download:- PYTHassignment.zip

Reference no: EM13376231

Questions Cloud

On june 30 2013 georgia-atlantic inc leased a warehouse : on june 30 2013 georgia-atlantic inc. leased a warehouse facility from ic leasing corporation. the lease agreement
Hand-made furniture company manufactures sofas for : hand-made furniture company manufactures sofas for distribution to several major retail chains. the following costs are
Impulse pty ltd impulse is an entertainment system : impulse pty ltd impulse is an entertainment system manufacturer that was established in 2005. your audit firm king amp
Overview1 created a document describing the business and : overview1. created a document describing the business and identifying the problems being experienced by the assignment
Part-1for task 1 list the things you changed and the : part-1for task 1 list the things you changed and the purpose of changing it. good reasons include making code easier
Hyundai case studycommon case focuses on the operations of : hyundai case studycommon case focuses on the operations of hyundai the korean automobile manufacturer in china. the
Question 1 entity-relationship er model create an er : question 1 entity-relationship er model create an er diagram using the set of requirements provided for oxford city
Write a program that allows a user to enter a line of text : write a program that allows a user to enter a line of text counts number of words and number of vowels in the sentence
What do prion and virus have in common what do capsid and : what do prion and virus have in common? what do capsid and prion have in common? what do virus and retrovirus have in

Reviews

Write a Review

Python Programming Questions & Answers

  Explain a python program storing and processing simple bank

A Python program storing and processing simple bank records is in the early stages of development. The records are stored in a text file (bank.txt) that contains, for each bank customer, their given name, account number and balance.

  Write a function trans(m) which returns the transpose

Write a function trans(M) which returns the transpose of an n-by-n matrix M. The matrix M is represented by a list of n lists, each of length n. Transposing M means that each M[i][j] is swapped (once!) with M[j][i].

  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

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

  Most popular name would be the one with the biggest number

the program will ask you to insert the year that the user is interested in, then ask the gender that the user is interested in, and print out the most popular names corresponding to the year and gender. FYI, the number on the right represents how man..

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

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

  Write a program using the ''requetinteger''

using python/jython programming write a program using the 'requetInteger' function that will ask the user to type a value that will draw a line from one point on a picture to another. I don't need specific help just a gerneral idea.

  Without using the system function to call any bash commands

without using the system function to call any bash commands write a python program that will implement a simple version

  Recursion to write a python function

Use recursion to write a Python function depth(LL), where LL is a nested list of lists of lists etc. of numbers (i.e., oat and int) and strings. We want to return the depth of nesting, i.e., how often, maximally, there is a list in a list etc

  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.

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