Recess At Last — 18 of 73

Gerald Aungst

Release 1

[This is to give the player a little more help when they try going a direction that doesn't have an exit.]

Definition: a direction is viable if the room it from the location is a room.

Instead of going nowhere:

let count of exits be the number of viable directions;

if the count of exits is 0, say "You appear to be trapped in here." instead;

if the count of exits is 1, say "From here, the only way you can go is to [a list of viable directions].";

otherwise say "You can[']t go that direction, but you could go to [a list of viable directions]."

Instead of going nowhere for at least the second time:

let count of exits be the number of viable directions;

if the count of exits is 0, say "You still appear to be trapped in here." instead;

otherwise say "You can[']t go that direction either. You can go to [a list of viable directions], or you can try just typing the name of the room where you want to go."