Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

(8) What am I doing to stretch the high achievers?

Answered: 1 week ago

Question

(9) What am I doing to develop the poor performers?

Answered: 1 week ago