Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am looking for help with writing a code that falls in line with the requirements these steps provide? Task Summary This programming task is

I am looking for help with writing a code that falls in line with the requirements these steps provide?
image text in transcribed
image text in transcribed
image text in transcribed
Task Summary This programming task is a review of Programming I concepts up to and including declaring, defining, and invoking functions. We will be implementing a very simple interactive game, called "Dungeon Adventure". For this assignment you will learn and demonstrate how to: 1. write and read data from the standard input and output streams, 2. write functions using pass by-value and pass by-reference, 3. utilize a loop construct, 4. utilize multiple types of selection construct, 5. declare and define variables, 6. manipulate vectors, 7. use structs, 8. use enum class Rules of the Game: 1. The player always begins the game in their cell in a state of 10 health 2. Each time the player changes rooms (i.e, makes a legal move), the player loses one point of Health. 3. The goal of the game is to collect the Jailer's Key (located in a random room) and then reach the exit room. NOTE:: the key should not be in the exit Which we will assume is the last roogn in the vector! 4. The player automatically picks up the Jailer's Key when entering the room containing it for the first time. The Jailer's Key is only picked up one time. 5. The player will die if hisher Health reaches 0 . 6. The player will only win the game only if they reach the exit. 7. If the player tries to move in any direction that does not change the room, then this is considered an illegal move and nothing happens (including no loss of Health). In this case, a. the illegality of the move will be displayed, b. the game will pause until a key is pressed, 1. armory contains the "Holy Hand Grenade of Antioch" which, similar to the Jailer's Key, can only be picked up once. The inventory now needs to allow having the key, the grenade, or both. 2. the gate room contains the "Killer Rabbit of Caerbannog". Upon entering, a. if you do not have the Holy Hand Grenade, you die with an appropriate message. b. If you do have the Hand Grenade, i. the rabbit dies, ii. the grenade leaves your inventory, iii. a message about the death of the rabbit is displayed, iv. and the game pauses. v. Finally, the message for the room changes for subsequent entering to describe the mess left by the death of the rabbit. 3. +5XP if you use quotes from the movie, "Monty Python and the Holy Grail" for your messages. 4. You do not have to use the instructor provided descriptions for rooms 1&3 if you do the extra credit. However, you should still indicate where the doors to the room are located. 5. You must make a note in your submission that you completed the extra credit I do not provide support for finishing the extra credit, and it is all or nothing for points. 6. I am in no way endorsing this movie, and did not care for it myself. Tis all in good fun

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started