Skip to content

7. Mini Project: Plan a Text Adventure

Time to combine everything from this unit: sequence, decisions, loops, and variables.

Plan (don't build yet — this is Unit 1!) a small choose-your-own-path game:

  • At least 3 rooms, connected by player choices
  • At least 1 decision (a diamond — "go left or right?")
  • At least 1 loop (something that repeats until a condition changes — a fight, a search, a puzzle you can retry)
  • At least 1 variable (health, an item count, something that changes as the player plays)

A tiny example to start from:

( Start: You are in a cave. )
            |
   < Go left or right? >
   Left /          \ Right
       /            \
[ A sleeping dragon ]  [ A locked door ]

Draw the full flowchart in draw.io, and write the matching pseudocode underneath it (or alongside it — whichever is easier to follow).

Try it

Finish your 3-room flowchart and its pseudocode. Save the draw.io file — you'll want it again soon.

Tip

This exact plan is what you'll build for real in Unit 2 using Scratch, so the clearer your flowchart is now, the easier that unit will be.

Next: Quick Reference →