Digital & AI literacy · 2026-11-14
Spin When You See a Yellow Leaf
Digital literacy doesn’t always require a screen. Through simple “If/Then” games, young children build a foundation for computational thinking while they play.
In Switzerland, hiking in the mountains is a beloved weekend rhythm for many families. Along the winding Alpine paths, with the crisp air often carrying the distant chime of cowbells, the trails are dotted with brightly painted markers on rocks and tree trunks. A yellow diamond means a gentle, well-paved walking path, while a stripe of red-white-red signals a steeper, more rugged mountain trail ahead.
For a four-year-old spotting these markers among the alpine meadows and loose stones, this is more than just a treasure hunt; it is an exciting rule to follow. “If we see the yellow marker, we can walk with big steps; if we see the red and white stripes, we must slow down and climb carefully.” Without realizing it, when a young child faithfully translates these visual cues into physical actions, they are practicing one of the most fundamental concepts of computer science: the “If/Then” conditional statement.
Little programmers in the physical world
When we think about “digital and AI literacy,” our first instinct is often to picture a child learning to swipe on a tablet or type lines of code on a screen. However, true computational thinking is fundamentally unplugged. At its core, it is about how we use logic, sequencing, and rules to break down and solve problems.
Professor Marina Umaschi Bers at Tufts University, a pioneer in early childhood technology research, emphasizes that coding is essentially a language of logic. Navigating the digital world requires strong executive function—specifically working memory, cognitive flexibility, and self-control. When young children play rule-based games in the physical world, they are building the cognitive architecture necessary for understanding complex systems later in life. Long before they ever touch a keyboard, children become excellent little programmers simply through physical movement and keen observation of their environment.
Turning the world into a giant algorithm
Around three or four years of age, a child’s natural fascination with cause and effect begins to blossom. Their early understanding is very direct (“If I push this block, it falls”), but it soon develops into the ability to hold an abstract rule in their mind and apply it flexibly to a changing environment.
We can nurture this developmental leap by inventing unplugged algorithms during our daily routines. This engages what scientists call embodied cognition—when a child uses their whole body to physically execute a logical decision, they internalize the concept much more deeply than they would by simply tapping a screen.
Sometimes, everyday observations naturally spark these connections. A child might wonder, or even ask Sparkie, "Why do the supermarket doors open by themselves when we walk up?" This is a perfect, everyday moment to explain real-world sensors through the lens of logic: "Because the door has a little hidden rule inside: If a person walks close, then open the door."
3 things to try this week
- Play "If/Then" on the go: During a neighborhood walk or while waiting for a bus, use your surroundings to set simple triggers. "If we step on a yellow leaf, we spin around; if we see a red car, we clap our hands." This turns a potentially boring wait into a playful workout for a child’s working memory.
- Run a "sorting algorithm" at tidy-up time: Turn the evening chore of tidying up into a data-sorting game. Tell your child, "Let’s run our clean-up program: If the toy is made of wood, it goes in the yellow box; if it is a soft plushie, it goes to sleep in the basket."
- Be a silly robot: Tell your child that you are a robot who needs to be "programmed." You can only follow precise, step-by-step instructions to complete a task (like "take two steps forward, turn left, and pick up the apple"). When the robot inevitably bumps into the sofa or makes a silly mistake because an instruction was too vague, children learn the importance of clear sequencing—and share a good laugh along the way.