Create a cheat commands in the game so player can teleport

Assignment Help Python Programming
Reference no: EM13860294

To start

Play the game first!

To win the game, pick up five items (any item) from the ground by moving around the map and go back to when you started (Location 0). Use command "GET object" to get any object from the ground and "INVENTORY" to check how many items you currently have.

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. For example, od for open door ...etc.

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 DisplayMapfunction for this task.

For example (current location is 2):

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, 5 and 6. 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 vaccumingto 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.

Attachment:- Assignment.rar

Reference no: EM13860294

Questions Cloud

User interface design mock-up of the organization : Building on your initial user interface (UI) design mock-up of the organization's program UI, the interface now needs to present more information to the user
Current position at a facility in the mid west : The purpose of this assignment is to help you see that one's leadership style and effectiveness is culturally dependent.Assignment Overview: Assume that you are being sent to China to run a division of your company's overseas operations. Let's assume..
Complete iguanas budgeted income statement for quarter two : Complete Iguana's budgeted income statement for quarter 2. (Round cost per unit and final answers to 2 decimal places.)
Environment throughout the full life cycle of the product : Definition of sustainable procurement but, in its simplest terms, it is the ability to purchase products and services, usually on a large scale, without compromising resources for future generations.
Create a cheat commands in the game so player can teleport : Create a cheat commands in the game so player can teleport to any location in the map - The first four tasks in this section can be completed by modifying only the code within the ProcessStatement() and Game() functions. This section typically requ..
Discuss the roles doctors play in the business : What type of demand exists for pharmaceutical and medical device products? Discuss the roles doctors play in the business buying process for medical equipment used in a hospital and why companies market so heavily to them
What is the market equilibrium : Assume demand is given by: Qd = 80 - 4p. Assume supply is given by Qs = 40. What is the elasticity of supply? What is the market equilibrium?
Methods of researching and organizing research : methods of researching and organizing research
Consumption-leisure models : Draw the complete consumption-leisure model. Be sure to label completely and correctly. Find the optimal consumption bundle.

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.

  The number of lowercase letters in the file

The number of uppercase letters in the file The number of lowercase letters in the file

  Ida to reverse engineer a piece of shellcode

You are a Malware Investigator at 0xC0ff33, Inc and an incident responder came across injected shellcode during an investigation. He has done all he can in IDA and has passed on the .idb file to you. Figure out what the purpose of the malware was ..

  Write a non-fruitful function drawequitriangle

Write a non-fruitful function drawEquitriangle(someturtle, somesize) which calls drawPoly from the previous question to have its turtle draw a equilateral triangle

  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.

  Write a class named employee

Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title

  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.

  Write a program that accepts as input a sentence

Write a program that accepts as input a sentence in which all of the words are run together but the first character of each word is uppercase. Convert the sentence to a string in which the words are separated by space and only the first word start..

  Write a program that asks for the user age

Write a program that asks for the user's age. Based on their response print "You can vote" (18 years old or older) or "You can't vote" and also whether or not he/she is a senior citizen (over 64)

  Define three types of programming errors

Define three types of programming errors and explain with examples

  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 program that will input the name of five students

Write clearly with documentations where necessary as you write the program to solve the following problem.

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