Design and implement mini-missions in the haunted house

Assignment Help Python Programming
Reference no: EM131067737

Assignment Brief:

You are tasked with improving and designing part of the code for the Haunted House game. Please read thishandout and the code provided on Moodle.

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 tasksin 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 3will 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.

814_Figure.jpg

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-missionsin 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 thestudy to find heavy duty batteries and do start vaccuming tokill the ghost insidethe 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 playerto keep the game flowing and interesting. Display hints to help player findkey items and key places.

Describes assignment you need to have the knowledge of python to finish this work out and please read the requirements carefully.

Game Design and Implementation

INSTRUCTION: Describe your mini-missions using the given template below.

a. Describe player's mini mission in 2 sentence. Include location name(s), location ID(s) and item name(s).

E.g. player has to go to Library (room ID, 32) to examine books (command) to find a map (item name). The room's full name is "LIBRARY WITH A LOT OF OLD BOOKS" as a hint to player.

b. Describe player's second mini mission in 2 sentences. Include location name(s), location ID(s), new exit and item name(s).

c. Describe player's third mission in 3 sentences. Include new action name, item name(s), and location name(s) & ID(s).

Attachment:- Assignment code.rar

Reference no: EM131067737

Questions Cloud

Description of the core business of the company : BUACC5930 Accounting Practices and Concepts - Assignment assessment report. As stated in the requirements, students are to "analyse this report based on your accounting studies and prepare a report showing how Dick Smith went from some very optimis..
International firms to the globalization of operations : Identify and discuss the five major drivers that are leading international firms to the globalization of their operations. Include examples of companies that have globalized as a result of these driving forces.
Solve compound inequalities as demonstrated in elementary : Solve the compound inequalities as demonstrated in Elementary and Intermediate Algebra and the Instructor Guidance in the left navigation toolbar, in your online course.
Discuss the concept of addiction and the influence : Discuss the concept of addiction and the influence of pop psychology on it. The term addiction has been widely used for years to refer to a condition related to drugs, alcohol, nicotine, etc. But, some argue that we are taking the concept of add..
Design and implement mini-missions in the haunted house : 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'
Business barriers to internationalization : Identify two small business barriers to internationalization. If you were a recently hired manager of a small business facing great opportunities in a foreign market, how would you go about overcoming these barriers?
The main difficulties that home carers : What are the main difficulties that home carers might face in working in someone's home, and how might they overcome them?
Choose an issue related to sociology : Choose an ISSUE RELATED to Sociology. (Going Green, Elderly in 2016, Elderly and STDs, Birth rates, College Dropouts, Job Scarcity, Divorce Rates, Marriage rates, Anxiety and Exerciser, Depression and Society Pressures, Race, Clean Water, Water ra..
Important meeting with other clinic directors : The clinic director is about to leave on a trip to the capital city for an important meeting with other clinic directors. However, the deadline for a decision on what types and quantities of surgical gloves to order is due, and the director has no..

Reviews

Write a Review

Python Programming Questions & Answers

  The dictionary order based on the ascii order

Needless to say, the dictionary order based on the ASCII order is not what a real-world indexing software wants. So, we want to implement the dictionary order of strings in the standard wa

  Enter an integer for the base of the power

This assignment requires one file containing a main function and a recursive function named power.

  Permutation ciphers

Permutation Ciphers (a.k.a. Transposition Ciphers) are another class of simple cryptosystems. For this we use the functions apply(.,.) and inv(.) from Homework 4; copy these two functions into your le as auxiliary functions.

  Creation of a program that will assemble dna chains

The aim of this assignment is the creation of a program that will assemble DNA chains, using the fragments given

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

  Project title email spam filterabstractanalyze the emails

project title email spam filterabstractanalyze the emails and predict whether the mail is a spam or not a spam.to work

  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

  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.

  Development on windows and linux systems

develop a simple, data-intensive application in Python - Data Analysis of a Document Tracker

  Convert inches into yards feet and inches

Convert inches into yards, feet, and inches

  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

  Write python program isosceles tri equilateral tri rectangle

Write python program Isosceles Tri Equilateral Tri Rectangle, Write another "driver" script called project1.py which imports the polygon.py module, reads an input file of polygonal data and writes another file of areas and perimeters.

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