๐Ÿ—๏ธ Unit 2 Project

Text Adventure

Build a one-room text adventure game! Describe a scene, offer choices, and branch to different outcomes using everything you learned in Unit 2.

What You're Building

You wake up in a mysterious room. Three doors stand before you โ€” red, blue, and green. Your program will describe the scene, let the player choose a door, and then reveal what's behind it. One door leads to a second choice (nested decision!).

๐ŸŽญ Describe the Scene

Print at least 3 lines describing where the player is and what they see.

๐Ÿšช Offer 3 Choices

Ask the player to choose "red", "blue", or "green" door via input().

๐Ÿ”€ Branch per Choice

Each door leads to a different outcome with unique text.

๐Ÿฐ Nested Decision

Behind one door, the player faces a second choice (at least 2 options).

Required structure: Your code must use input() to get the player's choice, if/elif/else to branch, and at least one nested if/else inside one of the branches. Use print() for all story text.

๐ŸŽฎ Simulated Player Input

Pre-loaded

Since we can't type live input in the browser, choose what the "player" will type. Your code's input() calls will receive these values in order.

First choice:
Second choice:
Your Code