Home
C Sci 40 - Adventure Island Walkthrough Classes

What follows is a transcript from a completed game that meets minimum qualifications.  This adventure game is similar to games such as Collossal Cave Adventure or Zork which are currently available as free games online.  The player uses the command line to play the game, typing in commands such as "north" to move through the world of the game.  In the example below, I did not test all commands and features, like "save", "inventory", and some others.  I simply solved all the puzzles and played the game to the end, throwing in a few extra commands to further explain how the game is played.


gaj@gaj-q200e:~$ ./a.out
Welcome to Adventure Island! Please enter your name:
Greg 

Let's begin!

You have just awakened on a strange island with a terrible headache.
You can't remember anything about yourself or where you are.

The island is forested with banana trees. Most of the bananas are green, but one tree to your north might have ripe bananas. There are ominous drums in the background. There is a ship to your south with a gangplank to the shore.

What would you like to do?
north

There is a large banana tree here. There is one bunch of ripe bananas on the tree within reach.

What would you like to do?
cut bananas

You need a knife to cut down the bananas.

What would you like to do?
take bananas <-- Note that cut bananas and take bananas are interpreted as the same command by the program.

You need a knife to cut down the bananas.

What would you like to do?
jump

I don't understand. Please try another command.<-- Note that the game should respond appropriately to commands it does not understand.

What would you like to do?
south

The island is forested with banana trees. <-- Note that the description is shorter the second time you come to the same place.

What would you like to do? <-- "look" gives the longer description again.
look

The island is forested with banana trees. Most of the bananas are green, but one tree to your north might have ripe bananas. There are ominous drums in the background. There is a ship to your south with a gangplank to the shore.


What would you like to do?
south

The gang plank is the access point to the ship. You may continue south to reach the top deck, or travel north to return to the island.

What would you like to do?
go north  <-- Note that "go north" means the same thing as "north".

You are quickly being approached by angry natives. Appease them with a gift or do not leave the ship for your safety!

What would you like to do?
south

The gang plank is the access point to the ship.

What would you like to do?
s  <-- Note that "s" means the same thing as "south".

The top deck has a wheel at the east end of the ship, and there is a ladder down to the lower deck. Towards the west is the Captain's quarters.

What would you like to do?
w

These are the Captain's quarters. There is a bed and a table in this room. There is a knife on the table.

What would you like to do?
take knife

You have picked up a knife.

What would you like to do?
look

These are the Captain's quarters. There is a bed and a table in this room.  <-- Note that the description changes because the knife was taken.

What would you like to do?
east

You are on the top deck.

What would you like to do?
down

The bottom deck is dimly lit, and smells musty. You can make out three doors. One is to the north, one is to the south, and one is a trapdoor below you.

What would you like to do?
n

You've entered the cargo hold. There are barrels, a pile of tools, and a trunk.

What would you like to do?
open trunk

You open the trunk to find hidden treasure!

What would you like to do?
take treasure

You have just collected the treasure.

What would you like to do?
s

You are on the bottom deck.

What would you like to do?
s

This is the galley. It is mostly empty, but in a shadowy corner you see a parrot sitting on a perch.  <-- Note that until one of the words "polly", "cracker", or "hello" are typed,  commands will be repeated in pig latin by the parrot and the user will not be allowed to leave the room.

What would you like to do?
north

The parrot squawks: orthnay

What would you like to do?
go north

The parrot squawks: ogay orthnay

What would you like to do?
n

The parrot squawks: nway

What would you like to do?
I would like to leave

The parrot squawks: Iway ouldway ikelay otay eavelay

What would you like to do?
Polly want a cracker?

The parrot squawks: There is a secret compartment in the Captain's quarters containing the keys to the prisoner's cell.  <-- From now on, the parrot will never say anything again.

What would you like to do?
n

You are on the bottom deck.

What would you like to do?
d

This is the brig. In this room there is a prisoner in a locked cell.

He says, 'Greg, I'm so glad you're alive. The captain locked me up for cheating at cards, which is the only reason the islanders didn't capture me. They killed everyone else. Now I guess we're the only two left, which makes you captain since you were first mate. Go find the keys to unlock this door, and we can sail out of here.'

What would you like to do?
up

You are on the bottom deck.

What would you like to do?
u

You are on the top deck.

What would you like to do?
w

These are the Captain's quarters. There are keys in a secret compartment.

What would you like to do?
take keys

You have picked up some keys.

What would you like to do?
e

You are on the top deck.

What would you like to do?
e

There is a large gorilla by the ship's wheel. This gorilla is hostile. You can't touch the wheel.

What would you like to do?
w

You are on the top deck.

What would you like to do?
n

The gang plank is the access point to the ship.

What would you like to do?
n

You are quickly being approached by angry natives. Appease them with a gift or do not leave the ship for your safety!

What would you like to do?
give treasure

You have given the treasure to the angry natives.
They are pleased and have decided to leave.

What would you like to do?
n

There is a large banana tree here. There is one bunch of ripe bananas on the tree within reach.

What would you like to do?
cut bananas

You have cut down bananas from the tree and collect them.

What would you like to do?
s

The island is forested with banana trees.

What would you like to do?
s

The gang plank is the access point to the ship.

What would you like to do?
s

You are on the top deck.

What would you like to do?
e

There is a large gorilla by the ship's wheel. This gorilla is hostile. You can't touch the wheel.

What would you like to do?
give bananas

You have just given the gorrila some bananas.
He appears to be pleased and decided to leave.

What would you like to do?
w

You are on the top deck.

What would you like to do?
d

You are on the bottom deck.

What would you like to do?
d

This is the brig. In this room there is a prisoner in a locked cell.

He says, 'Greg, I'm so glad you're alive. The captain locked me up for cheating at cards, which is the only reason the islanders didn't capture me. They killed everyone else. Now I guess we're the only two left, which makes you captain since you were first mate. Go find the keys to unlock this door, and we can sail out of here.'

What would you like to do?
unlock door

You have unlocked the cell and released the prisoner.

What would you like to do?
up

You are on the bottom deck.

What would you like to do?
u

You are on the top deck.

What would you like to do?
u

Action not allowed. Please enter a different command.

What would you like to do?
e

You are at the ship's wheel.

What would you like to do?
sail away

Congratulations! You have sailed away to safety and beat the game.

Would you like to start another game?
no

GOODBYE!


gaj@gaj-q200e:~$