Question
Given a set of valid options, 4 directions and 4 actions - and the secret escape word is valid as well if they enter an
Given a set of valid options, 4 directions and 4 actions - and the secret escape word is valid as well
if they enter an invalid option, display the valid options
using a method, get a valid option from the user
using methods, display what happens from that action
one of the actions should 'wound' the player. if a player is wounded, they can't do anything other than sleep, other choices are invalid because they are wounded
Include a 'sleep' action that will heal the player, after they sleep, they can travel again.
track the # of turns the player spends in the game
there is a secret 'escape word' that will end the game tell them congratulations thanks for playing and how many turns they wasted playing the game.
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