Fun Mystery Code Adventure: Preschool Coding and Pattern Lesson

Help young children explore patterns, sequencing, symbols, and beginner coding through a fun mystery box adventure. This hands-on lesson includes secret codes, movement activities, creative problem-solving, formative assessment, and a simple digital safety routine: stop, look, and ask a trusted grown-up.

Previous Lesson
PDF

Fun Mystery Code Adventure

Materials Needed

  • Paper and crayons or washable markers
  • Small cards or sticky notes
  • Building blocks or small toys
  • A small box, bag, or basket
  • Optional: toy keyboard or tablet with adult supervision
  • Optional: stickers for encouragement

Learning Objectives

By the end of the lesson, the child will be able to:

  • Notice and name simple patterns, letters, numbers, or symbols.
  • Follow a short sequence of two to four steps.
  • Create a simple “secret code” using pictures, colors, or shapes.
  • Explain that grown-ups help us decide whether a message or button is safe to use.

Success Criteria

The child is successful when they can:

  • Copy or continue a simple pattern.
  • Follow the code steps in the correct order.
  • Make and explain a code of their own.
  • Say, “I can ask a grown-up if I am not sure.”

Introduction: The Mystery Box

Time: 5 minutes

Place a few blocks, shapes, or toy animals in a box or bag.

Say:

“Today we are going on a mystery adventure! We will look for patterns, follow clues, and make our own secret code. A code is a special way to share a message.”

Invite the child to guess what is inside the box by asking questions such as:

  • “Is it soft or hard?”
  • “Is it big or small?”
  • “What clue should we look for first?”

Explain the safety rule:

“If a message or button looks strange, we stop and ask a grown-up. We never have to press or answer something when we are unsure.”

Tell the Child What They Will Learn

Say:

“First, I will show you a pattern. Next, we will solve a code together. Then you will make a code for me to solve. At the end, you will tell me what you discovered.”

Body: I Do — Watch Me Find a Pattern

Time: 5 minutes

Use blocks, toys, or drawn shapes to make a simple pattern:

Red block, blue block, red block, blue block

Point to each item and say:

“I see red, blue, red, blue. The colors take turns. What do you think comes next?”

Place the next correct block and explain:

“Blue comes next because the pattern repeats.”

Try another pattern:

  • Circle, square, circle, square
  • Clap, tap, clap, tap
  • Jump, freeze, jump, freeze

Quick Check: Ask, “What part keeps repeating?” Accept pointing, speaking, or showing the answer.

Body: We Do — Solve a Treasure Code Together

Time: 8 minutes

Create three simple code cards:

Symbol Meaning
Circle Clap
Square Tap your knees
Triangle Touch your head

Show a short message such as:

Circle, square, triangle

Work together to do the actions in order:

  1. Clap.
  2. Tap your knees.
  3. Touch your head.

Say:

“We looked at each symbol, remembered what it means, and did the actions in order. That is how we followed a code!”

Invite the child to make another message using two or three cards. Follow the child’s message together.

Think-Pair-Share Adaptation:

  • Think: The child chooses which card should come first.
  • Share: The child tells the adult what the symbol means.
  • Do: Both people act out the code.

Body: You Do — Make Your Own Secret Code

Time: 10 minutes

Invite the child to choose one of these code-making options:

  • Movement code: Use drawings for clap, stomp, spin, or jump.
  • Color code: Use colors to show which toy to pick up.
  • Shape code: Use shapes to show a building action.
  • Picture code: Use pictures to show a pretend snack-making sequence.

Help the child create three code cards. For example:

  • Star = pick up a block
  • Heart = place it on the table
  • Moon = say, “All done!”

Ask the child to arrange the cards and give the adult the instructions.

Use encouraging questions:

  • “What does this picture mean?”
  • “Which card comes first?”
  • “What should we do next?”
  • “How can you help me remember your code?”

Real-World Connection: Stop, Look, Ask

Time: 5 minutes

Show a harmless pretend message card, such as one with mixed-up letters, unusual symbols, or a picture of a button.

Say:

“Sometimes we see messages or buttons that we do not understand. We do not need to guess. We can stop, look carefully, and ask a trusted grown-up.”

Practice the three-step safety routine:

  1. Stop: Keep your hands still.
  2. Look: Notice what the message or button says.
  3. Ask: Get help from a trusted grown-up.

Practice with simple examples:

  • “You see a button you do not recognize.”
  • “A message asks you to do something confusing.”
  • “You are not sure what a symbol means.”

Ask, “What should we do?” Encourage the child to answer, “Stop and ask a grown-up.”

Formative Assessment: Show Me

Use these quick checks throughout the activity:

  • Show a pattern and ask the child to choose what comes next.
  • Give two code cards and ask which comes first.
  • Ask the child to explain one symbol using words, gestures, or pointing.
  • Present a pretend confusing message and ask what the safe choice is.

Summative Assessment: The Child’s Mystery Mission

Time: 5 minutes

Give the child a final challenge:

  1. Make a three-part code.
  2. Explain what each part means.
  3. Ask the adult to follow the code.
  4. Change one part and explain what changed.

Assess with this simple checklist:

  • The child made or continued a pattern.
  • The child followed steps in order.
  • The child created a code.
  • The child explained at least one symbol.
  • The child remembered to ask a grown-up when unsure.

Differentiation and Support

For a Child Who Needs More Support

  • Use only two symbols instead of three.
  • Give the child two choices: “Does the circle mean clap or stomp?”
  • Use real objects and movements instead of writing.
  • Repeat the code slowly and point to each card.
  • Allow the child to answer by pointing, moving, or drawing.

For a Child Ready for More Challenge

  • Create a four- or five-part code.
  • Use an ABBA pattern, such as red-blue-blue-red.
  • Ask the child to invent a symbol and teach its meaning.
  • Ask the child to find and correct a mistake in a pretend code.
  • Invite the child to make a map with coded directions to the mystery box.

Conclusion: Tell What We Learned

Time: 3 minutes

Ask the child:

  • “What is a code?”
  • “How did we find the pattern?”
  • “What did your code mean?”
  • “What do we do when a message or button is confusing?”

Recap together:

“Today we looked for patterns, followed steps, and made a secret code. We used pictures, colors, and shapes to share ideas. When something is confusing, we stop and ask a trusted grown-up.”

Optional Follow-Up Activities

  • Make a coded obstacle course using arrows and shapes.
  • Use toy animals to create a coded animal parade.
  • Draw a secret message using only colors and shapes.
  • Build a block tower by following a picture code.
  • Play “Simon Says” and talk about following directions carefully.

Ask a question about this lesson

Loading...

Related Lesson Plans

Everyone is Special: Preschool Lesson on Challenging Gender Stereotypes in Play

Engage preschoolers with this fun lesson plan about gender stereotypes, play, and friendship. Includes story time, toy s...

What Do Animals Eat? Fun & Easy Preschool Lesson Plan on Animal Diets

Engage preschoolers with this fun, interactive lesson plan about animal diets! Features matching activities and pretend ...

Fun Community Helper Lesson Plan & Activities for Preschoolers

Teach preschoolers about community helpers like firefighters, police, doctors, and teachers with this easy lesson plan f...

Boost Early Literacy Skills with Fun Vehicle-Themed Activities for Preschoolers: Learn Letters, Sounds, and Sight Words

Engage preschoolers in learning letters, sounds, and sight words like 'Stop' and 'Go' with this fun, vehicle-themed less...

Easy & Fun Preschool Lesson Plan: Activities to Teach Kids Body Parts

Teach preschoolers about their bodies with this fun & easy lesson plan! Features engaging activities like songs, stories...

Learn the Letter C: Fun Activities, Sound (/k/) & Craft for Preschoolers

Explore the letter C with fun, hands-on activities for preschoolers! Learn the /k/ sound (like cat), practice tracing C ...