Create a cheat commands in the game

Assignment Help Python Programming
Reference no: EM13827338

You are tasked with improving and designing part of the code for the Haunted House game.

Section 1

The first four tasks in this section can be completed by modifying only the code within the ProcessStatement() and Game() functions. This section typically requires knowledge on lists, loops and if's.

1) Modify and display the Help message in the following fashion so it is easier for player to read and understand.

Recommended format:

Help - Display all possible actions you can carry out in this game

Score - Display your current score Inventory - Display your inventory ... etc

2) Add a shortcut to all commands. If a command is one word, the shortcut should be made of the first letter and the last letter of the command. For example, hp for help, gt for get ...etc. If the command is two words, the shortcut should be made of the first letter of the two words.

3) Create a cheat commands in the game so player can teleport to any location in the map. The name of the command has to be 'tp'. Player has to entere a location number with the command e.g. tp 3 will take player to location 3. If location number entered is not valid (not 0-63), player should stay at the same location and an error message should be displayed.

4) Modify the game so player can quit the game by entering 'quit'. You can not use exit() or quit() functions in this task. You have to exit the while loop!

5) Create a cheat commands in the game so player can pick up any item he wants from any location in the map. You have to name this cheat command 'giveme '. If wrong item name is entered, it should display an appropriate message and nothing will be given.

Example:

WHAT DO YOU WANT TO DO NEXT?giveme
POSSIBLE ITEMS TO GET:
PAINTING, RING, MAGIC SPELLS, GOBLET, SCROLL, COINS, STATUE,
CANDLESTICK, MATCHES, VACUUM, BATTERIES, SHOVEL, AXE, ROPE,
BOAT, AEROSOL, CANDLE, KEY

NAME THE ITEM YOU NEED: painting
PAINTING SUDDENLY APPEARED IN YOUR BAG

6) Make a menu with 3 options at the start of the game: New game, Continue and Quit. It should validate user's input so anything other than these three commands are not accepted and need to be re-entered.

Section 2

In addition to the knowledge required in section 1, this section requires knowledge on function, testing and file input/output.

7) Display your current location on the map with two asteriks (**). You need to modify the DisplayMap function for this task.

8) Add two new functionalities to the game: Save game and Load game. Player should be able to save the game state so that the game can be continued at a later stage (by loading it back). First you need to create two new commands: save and load.

What you need to save:
1. Player's current location,
2. Player's visited locations
3. Player's inventory.

9) Make a test plan for your game. It has to include 3 checkpoints for task 1, 2, 4 and 3 test cases for task 3 and 5. A template for this test plan will be provided to you.

Test your game before you submit your code using this test plan and record the result on the plan.

10) Design and implement 3 mini-missions in the haunted house. This missions should involve player going to a special location on map, examining items, carrying out actions to find hints to win, new items or new exits. You have to document all 3 mini-missions in the documentation template given to you. You cannot reuse the ones that are already given to you in the code, but you can modify them to make your own.

a) The first mini-mission should involve player going to a special location on the map to examine something in order to find an item. The item should be hidden until the action is successfully carried out.

For example, player has to go to Library to examine books to find a map (item name)

b) The second mini-mission should involve player going to another special location on the map and carry out an action with an item to reveal a new exit. The exit should be hidden until the action is successfully carried out.

For example, player has to go to the study to read map to discover a new exit to the east (new exit should be revealed after map is read!).

c) The third mini-mission should involve player going to two separate places to find two different items and perform an action with those two items (in the inventory) at a special location. When this mission is successfully carried out, player should win the game.

For example, player has to go to the storage to find vaccum machine and then go to the study to find heavy duty batteries and do start vaccuming to kill the ghost inside the Dark room.

Note. Player should be able to complete the game without reading any manual or documentation, so give enough hints along the way to player to keep the game flowing and interesting. Display hints to help player find key items and key places.

Reference no: EM13827338

Questions Cloud

Explain why the free rider problem makes it difficult : This problem about economics and it is discuss about what are free riders and how can they affect a perfectly competitive market. Free riders are those who do not pay for the goods or services, especially for public goods or services.
Company profits if the JYMP product line is discontinued : Foto Company manufactures and sells a product called JYMP. Results from last year from the sale of JYMP appear below: Calculate the increase in company profits if the JYMP product line is discontinued. Do not use decimals or type the word increase af..
Which smoothing constant gives the most accurate forecast : Sales of Cool-Man air conditioners have grown steadily during the past 5 years: What effect did the smoothing constant have on the forecasts for Cool-Man air conditioners? Which smoothing constant gives the most accurate forecast? Use a three-year mo..
Effect on the storage tank : This problem related to Mechanical Engineering and it is about material change and its effect on the storage tank. Change in material resulted in overflow in the storage tank
Create a cheat commands in the game : Create a cheat commands in the game so player can pick up any item he wants from any location in the map - Display all possible actions you can carry out in game.
Find the derivatives of the functions : Find the derivatives of the following functions and please show all steps: (a)  f(x) = (x-1)^3 . e^4^x (b)  y = x^3 ln(x^2 +1)
Report on recent experience about renting foxtel cable tv : Report on Recent Experience about Renting Foxtel Cable TV Network
What is the total cost per unit to make afghan : Austin Wool Products purchases raw wool and processes it into spindles of yarn. The spindles of yarn can then be sold directly to stores or the can be used by Austin Wool Products to make afgans. What is the total cost per unit to make an afghan?In o..
Excplain failure of the super committee is good for economy : The problem from economics and it is explain The failure of "Super Committee" and the consequences have been discussed in the answer.

Reviews

Write a Review

Python Programming Questions & Answers

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

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

  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

  What is the purpose of variable fragnum

What is the purpose of variable fragNum in rdt1.0 sender code and how is the segmented message merged back in receiver? Which operation justifies it?

  What prompted the authors to try and address

What is the question that this study is trying to answer and what prompted the authors to try and address this question?

  Python scripting language

Your programming project will be a simple, working program, using a Python scripting language, which utilizes a good design process and includes: Sequential, selection, and repetitive programming statements as well as and At least one function call

  Assume an n × n matrix a is given

Assume an n × n matrix A is given, containing only 1's and 0's, such that, in each row, all 1's come before all 0's. Give an O(n log n) algorithm to count all 1's in A.

  Data file is a comma separated

The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.

  Implement functions for insertion sort

Implement functions for Insertion sort and bubble sort in python programming language and a function that calculates the function execution time.

  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.

  1 one factor that leads to a decline in biodiversity is the

1. one factor that leads to a decline in biodiversity is the introduction of non-native species. however most species

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

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