PatrickFrankAIU / ITWEB220-2404A

Learning resources for students in ITWEB 220, term 2404A.
0 stars 0 forks source link

Challenge: Escape the Cave! #10

Open PatrickFrankAIU opened 3 months ago

PatrickFrankAIU commented 3 months ago

Objective: Create a text-based adventure game where the player finds themselves waking up in a dark, mysterious cave with two paths: left and right. The game will guide the player through a series of decisions, leading to different outcomes based on their choices. Use nested IF statements to create the branching logic of the story.

Instructions:

1. Starting Point: Use prompt to display an introductory message explaining the scenario to the player: they have woken up in a dark cave with no memory of how they got there. They see two paths: one to the left and one to the right. Ask the player to choose a path by typing "left" or "right".

2. First Decision:

3. Conclusion: Regardless of the paths and decisions, converge the story to a concluding scenario using IF statements. For example, after the series of decisions, they finally find the exit of the cave. Based on the decisions made earlier, determine if they exit the cave with treasure, useful supplies, a map, guidance from the hermit, or perhaps they find another traveler who joins them on their journey.

4. Final Message: Use alert to summarize the player's adventure and outcomes based on their choices.

Requirements: