Question: 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.
I am looking for code that goes in line with what the
declarations ask each specific function to perform. //Randomly plce key in either

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!