Step 5: The Full Haunted Mansion π°
Last step. Time to make this a whole game β the kind you'd actually hand to a friend and say "here, try to escape." π₯
A title banner sets the mood. Repeat a symbol with *:
print("=" * 42)
print(" π° THE HAUNTED MANSION π°")
print("=" * 42)
Victory art for the players who make it out:
print("*" * 42)
print(" π YOU ESCAPED! π")
print(" π π₯³ π π")
print("*" * 42)
And a real game has two ways to finish: a win π and a loss π. Both should feel like an ending, not like the program just ran out.
Your mission
Build the complete Haunted Mansion:
- A title banner at the top
- At least 3 decision points β three
input()moments - Your inventory puzzle: find an item on one path, need it later
- A losing ending (out of lives, or wrong choice) π
- A winning ending with celebration print-art π
Everything you've learned is in this one program: variables, f-strings,
input, if/elif/else, lists, and in. Go make something spooky. π¦
Your code
Press βΆ Run to see what your code does!