In your introductory programming course, you learned how to make a lightweight choose your own adventure dungeon crawler program. In this challenge, you will be able to put your own creativity to the test and implement your own version of the dungeon crawler program.
&&
(AND) and ||
(OR)These examples are not complete applications. They are snippets of output designed to help you generate ideas.
Sample 1
You enter a dark and musty room. A flickering torch hangs on the wall.
Do you (1) take the torch, or (2) proceed in darkness?
1 [Enter]
You grab the torch. The light reveals a hidden door at the back of the room.
Do you (1) open the hidden door, or (2) continue exploring the room?
2 [Enter]
As you search the room, you find an old chest. Inside, you discover a healing potion.
Your health is now: 80
Sample 2
You find yourself at a fork in the path.
Do you (1) go left, or (2) go right?
1 [Enter]
A giant spider attacks you! Do you (1) fight, or (2) run?
1 [Enter]
You bravely fight the spider and defeat it. You gain a magic amulet.
Sample 3
You reach a locked door. Do you (1) use the key you found earlier, or (2) try to force it open?
2 [Enter]
The door won't budge, but you notice a lever on the wall.
Do you (1) pull the lever, or (2) keep searching the area?
1 [Enter]
The lever opens a secret passage! You proceed deeper into the dungeon.
Your inventory: 2 health potions, 1 magic amulet