Explore ActivitiesDigital Literacy
💻
Digital Literacy

Can you finish code your own adventure in about 30 min?

Code Your Own Adventure

You will children learn basic programming concepts like variables and inputs by coding their own stories.

Duration30 min
Age GroupAges 12–13
DifficultyBeginner
SubjectDigital Literacy
Activity Preview

See how this hands-on lesson works

Sign in to start the full activity flow, save this lesson, print a learner version, and track XP. The preview below is public so parents and educators can evaluate the activity before joining.

Concept

What this lesson teaches

Children learn basic programming concepts like variables and inputs by coding their own stories. This hands-on activity transforms abstract coding elements into relatable choices, helping them understand how computer programs work at a fundamental level.

Materials

What you need

    Steps

    How the activity runs

      Why It Works

      The learning connection

      By engaging in constructing a narrative through code, students utilize Bruner's CPA approach, moving from concrete examples (choosing story paths) to abstract concepts (understanding programming logic). The interactive nature of coding fosters immediate feedback, allowing for iterative learning.

      Extend the Lesson

      Try it with your learner

      1. Open a Python IDE or text editor on your computer. 2. Type 'print("Welcome to your adventure!")' to introduce your game. 3. Create a variable for player name: 'name = input("What's your name?")'. 4. Write a storyline: 'print("Hello, "+name+"! You find a treasure chest.")'. 5. Add choices: 'choice = input("Do you want to open it? (yes/no)")'. 6. Use if statements to develop paths: 'if choice == "yes": print("You found gold!")'.

      Digital Literacy30 minAges 12–13Grade 7Sign in to save this activity
      Keep Learning

      Related activities