Skip to content
Snippets Groups Projects
Commit 544e6171 authored by igriffith4's avatar igriffith4
Browse files

Add new file

parent b602d892
No related branches found
No related tags found
No related merge requests found
"counterExample" by Isaiah Griffith
The Crypt Hallway Section 1 is a room. "You decend down a small staircase deeper into the crypt. Eventually, you come across a large chamber with a about a foot of water covering the ground. There are two archways on your left and right that lead to what you presume to be more tombs. Attached to the wall at the front of the room stands a 10 foot tall bronze kraken statue. Its mouth is agape with water pouring from it. Its head houses two eye sockets, dark caverns that kraken seem both lifeless and staring at you."
The Kraken head is a container in the Crypt Hallway Section 1. The description is "The two eye sockets seem a reasoable size to put somethin in them."
The red jewel is a thing in The Crypt Hallway Section 1.
Instead of examining the red jewel:
say "A large red jewel... Christopher would have loved this."
The blue jewel is a thing in The Crypt Hallway Section 1.
Instead of examining the blue jewel:
say "A large blue jewel. A reasonable size to put in something."
The red jewel counter is a number that varies. The red jewel counter is 2. [ Start with 1 red jewel ]
The blue jewel counter is a number that varies. The blue jewel counter is 2. [ Start with 1 blue jewel ]
The kraken's mouth is a door. The kraken's mouth is locked. The kraken's mouth is closed. The description is "The beak of the kraken is open, with a water fall pouring our of the mouth."
Instead of examining the kraken's mouth:
say "the mouth almost looks like a doorway... but how do I open it?"
The kraken's mouth is west of the Crypt Hallway Section 1. The kraken's mouth is east of the Crypt Hallway Section 2.
Instead of examining the Crypt Hallway Section 1:
if the red jewel counter < 1 or the blue jewel counter < 1:
say "You notice the Kraken and its gleaming jewels. The tentacles are watching you warily.";
otherwise:
say "You notice the Kraken and its gleaming jewels. It seems calm for now.";
Instead of taking the red jewel:
if the red jewel counter < 2:
say "You can't take that; it's already gone.";
otherwise:
decrease the red jewel counter by 1;
say "You take the red jewel.";
now the player carries the red jewel.
Instead of taking the blue jewel:
if the blue jewel counter < 2:
say "You can't take that; it's already gone.";
otherwise:
decrease the blue jewel counter by 1;
say "You take the blue jewel.";
now the player carries the blue jewel.
Instead of inserting the red jewel into the Kraken head:
if the red jewel counter is 1:
say "You place the red jewel in the socket of the Kraken's head.";
decrease the red jewel counter by 1; [ Decrease to indicate it's placed ]
now the red jewel is in the Kraken head; [ Move the jewel into the Kraken head ]
check both jewels in the Kraken head; [ Check if both jewels are placed ]
now the red jewel is in the Crypt Hallway Section 1;
otherwise:
say "You have no red jewel to place.";
Instead of inserting the blue jewel into the Kraken head:
if the blue jewel counter is 1:
say "You place the blue jewel in the socket of the Kraken's head.";
decrease the blue jewel counter by 1; [ Decrease to indicate it's placed ]
now the blue jewel is in the Kraken head; [ Move the jewel into the Kraken head ]
check both jewels in the Kraken head; [ Check if both jewels are placed ]
now the blue jewel is in the Crypt Hallway Section 1;
otherwise:
say "You have no blue jewel to place.";
Instead of removing the red jewel from the Kraken head:
if the red jewel is in the Kraken head:
increase the red jewel counter by 1; [ Increase to indicate it's removed ]
say "You remove the red jewel from the Kraken's head.";
now the player carries the red jewel;
otherwise:
say "You can't remove that; it wasn't placed there.";
Instead of removing the blue jewel from the Kraken head:
if the blue jewel is in the Kraken head:
increase the blue jewel counter by 1; [ Increase to indicate it's removed ]
say "You remove the blue jewel from the Kraken's head.";
now the player carries the blue jewel;
otherwise:
say "You can't remove that; it wasn't placed there.";
To check both jewels in the Kraken head:
if the red jewel counter is 0 and the blue jewel counter is 0: [ Check for 0, meaning both are placed ]
say "Both jewels are in place. The mouth of the great kraken statue fills with water and then decends into the ground revealing another section of the crypt.";
now the kraken's mouth is open; [ Action for the door ]
now the kraken's mouth is unlocked; [ Action for unlocking the door ]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment