Remix Library / Games

Castle Escape

A text adventure: explore the castle, find the crown, and get out. Type commands to play.

Beginner Python
No account needed: you’ll start as a guest.
read-only · remix to edit
Output

What you'll learn

  • input() and loops
  • Dictionaries
  • Lists
  • if / elif
  • Splitting code across files

Challenges

Remix it, then try these. Each one is a bit harder than the last.

  1. Add a new room to world.py and connect it to the map.
  2. Add a "drop" command to leave items behind.
  3. Count the player's moves and show them when they win.
  4. Add a monster that blocks a room until you find a sword.
  5. Save the game: write the current room and inventory to a file.