Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am looking for code that goes in line with what the declarations ask each specific function to perform. //Randomly plce key in either the

I am looking for code that goes in line with what the declarations ask each specific function to perform.
image text in transcribed
image text in transcribed
//Randomly plce key in either the cell, the jailer's, the arory, or the gate room. randonizekey\{ 3; l/you will need to deal with display changes that depend on the key. displayGameSate\{ - 3i //output messages depending on if the warrior has won or Lost. displayGameDone\{ 3; //output illegal nove messages depending if warrior tries to exit without having the key. l/,or if warrior exits the wrong way. displayIllegatMove\{. / ask for user input and convert char to room: :Directions. getActiont 3i I/Function is the only one that should make modifications to the warrior/roons including finding the key. : //This function should call other functions to display 1 llegal moves and move the marrior betaeen rooms. I/If player noves to a nem roon health decreases I/ Look to int main to decide return type changecanestatel changecanestatel ii //check end of game conditions to see if warrior lives or dies. I gameIsNotbone\{

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

5. What steps can you now take to develop these skills?

Answered: 1 week ago