Answered step by step
Verified Expert Solution
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.
//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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started