
The Big Idea: A “Robot Brain” Made of If-Then Rules
If you’ve ever said, “If you finish your homework, then you can play,” congratulations—you’ve already used the same kind of thinking that powers computers and many AI systems.
This weekend, you’ll turn that everyday parenting superpower into a hands-on, no-screen project: build a mini “robot brain” using if-then rules (also called conditionals). Your child becomes the programmer, and a family member (or a toy) becomes the robot.
This is one of my favorite unplugged AI activities for kids because it makes “how computers think” feel concrete. Instead of abstract code, kids can hold the rules in their hands, test them in real life, and debug when something goes wrong.
What kids practice along the way:
- Logical reasoning (conditions and outcomes)
- Sequencing (the order of rules matters)
- Debugging (finding why the robot did the “wrong” thing)
- Communication (clear instructions)
- Early AI concepts (rules-based systems are a real approach in AI)
What You’ll Need (10 Minutes to Set Up)
This challenge is designed as one of those computer science activities without screens that still feels “real.” Most materials are household basics.
Gather:
- 10–20 index cards or small pieces of paper
- A thick marker
- Tape (optional)
- A small space to move (hallway, living room)
- 5–10 common objects (spoon, sock, book, toy, pillow)
- A timer (optional)
Pick your “robot.” Options:
- A parent or sibling acting like a robot (most fun)
- A stuffed animal “robot” you move based on rules
- Your child as the robot while you program (great for younger kids)
Make a quick deck of rule cards:
- Write IF on the top-left, THEN on the top-right.
- Leave space in the middle to fill in rules.
Helpful tip: Start with 6 rules. You can always expand.
Build the Robot Brain: Rules, Sensors, and Actions
A rule-based “robot brain” needs three parts:
- Sensor input: what the robot notices (a color, an object, a sound, a word)
- Decision rule: the if-then logic
- Action output: what the robot does (step, turn, pick up, say a phrase)
Step 1: Choose 3 “Sensors” Your Robot Can Detect
In real robots, sensors are cameras, microphones, touch sensors, etc. Here, your sensors are simple things a human can detect.
Pick 3 from this list (or invent your own):
- Seeing a color (red/blue/green objects)
- Seeing a shape (circle/square drawn on paper)
- Hearing a keyword (“banana,” “activate,” “snack”)
- Touching a texture (soft pillow vs. hard book)
- Finding an object type (sock vs. spoon)
Keep it consistent: your robot must be able to notice the sensor reliably.
Step 2: Choose 5–8 Robot Actions
Actions should be simple and obvious.
Good starter actions:
- Take 1 step forward
- Turn left / turn right
- Pick up the nearest object
- Put down an object
- Freeze for 3 seconds
- High-five the programmer
- Make a robot sound
- Walk to the “charging station” (a chair)
Step 3: Write Your First If-Then Rule Set
Write 6 cards using the format: IF (sensor), THEN (action).
Here’s a ready-to-copy starter set:
- IF you see a sock, THEN pick it up.
- IF you see a spoon, THEN turn right.
- IF you see a book, THEN turn left.
- IF you hear the word “activate,” THEN take 2 steps forward.
- IF you are holding a sock, THEN walk to the chair.
- IF you reach the chair, THEN put the sock down.
That’s already a mini robot brain: observe → decide → act.
Step 4: Decide the Rule Order (This Is the Secret Sauce)
In rule-based systems, order matters. If two rules could apply, your robot needs a tie-breaker.
Pick one:
- Top-to-bottom priority: the robot checks rules in order and follows the first match.
- Most specific wins: “holding a sock” beats “seeing a sock.”
For younger kids, “top-to-bottom priority” is easiest: stack the cards and read from the top each turn.
Step 5: Run a 10-Minute Mission
Create a mission like:
- “Robot, clean up three socks.”
- “Robot, deliver a spoon to the kitchen.”
- “Robot, avoid the ‘lava’ pillow and reach the charging station.”
Play in turns:
- The programmer says “activate.”
- The robot checks the rules (top to bottom).
- The robot performs one action.
- Repeat until the mission is complete—or the robot gets stuck.
If the robot gets stuck, celebrate: you just found a bug.
Family Challenge Levels (Easy to Epic)
To make this one of your go-to family STEM activities at home, here are challenge levels that scale with age and attention span.
Use the table below to pick a level and see exactly what to do.
| Challenge Level | Best For (Age) | Add This Twist | Example If-Then Rules | Skills Practiced |
|---|---|---|---|---|
| Level 1: Robot Says | 5–7 | Robot only reacts to keywords | IF you hear “jump,” THEN jump. IF you hear “freeze,” THEN freeze. | Listening, cause-and-effect |
| Level 2: Object Finder | 7–10 | Robot reacts to objects placed around the room | IF you see a sock, THEN pick up. IF holding sock, THEN go to chair. | Sequencing, state (“holding”) |
| Level 3: Two Conditions | 9–12 | Add AND / OR rules | IF you see a sock AND you’re not holding anything, THEN pick up. | Multi-step logic |
| Level 4: Debug Mode | 10–14 | One rule is “wrong” on purpose; kids must fix it | IF you see book, THEN turn right (bug). Kids revise after testing. | Testing, debugging mindset |
| Level 5: Mini “AI” Sorting | 12–17 | Create rule sets to sort objects by category | IF object is soft, THEN put in Box A. IF hard, THEN Box B. | Classification, systems thinking |
Make It a Real “Robot Brain” With Memory (State)
This is where if then logic games for children start to feel like real computing.
Add a “memory token”:
- Give the robot a sticky note that says “HOLDING: ____”
- Or a bracelet/rubber band that means “hands full”
Now you can write rules like:
- IF your hands are empty AND you see a sock, THEN pick up sock.
- IF your hands are full, THEN do not pick up anything.
Kids quickly realize: memory changes decisions. That’s a huge leap in understanding.
Debugging Prompts (What to Say When It Breaks)
When the robot does something silly, resist the urge to “fix it for them.” Use prompts:
- “Which rule did the robot follow?”
- “Was there another rule that also matched?”
- “Do we need to change the rule… or the rule order?”
- “Can we make the IF part more specific?”
This is exactly how programmers think—and it’s one of the best reasons to do unplugged AI activities for kids.
A Few Specific Missions to Try Tonight
Choose one mission and run it for 15–25 minutes. Stop while it’s still fun.
Mission A: Laundry Bot (Fast and Funny)
Goal: Move 5 socks to the “laundry station.”
Add these rule ideas:
- IF you see a sock, THEN pick it up.
- IF holding a sock, THEN walk to laundry station.
- IF at laundry station, THEN drop sock.
Make it harder:
- Add “obstacle pillows” the robot must avoid.
- Add a second object type (spoons) that triggers a different action.
Mission B: Snack Delivery Droid (Great for Younger Kids)
Goal: Deliver a napkin to the table.
Rule ideas:
- IF you see napkin, THEN pick up napkin.
- IF holding napkin, THEN walk to table.
- IF you reach table, THEN put napkin down and say “delivery complete.”
Mission C: Secret Code Security Robot (Great for Older Kids)
Goal: Only open the “vault” if the correct passcode is spoken.
Rule ideas:
- IF you hear “Intellect,” THEN take one step.
- IF you hear “robot,” THEN take one step.
- IF you hear “brain,” THEN take one step.
- IF you have taken 3 steps (use tokens), THEN open vault.
This introduces the idea of tracking progress—another form of memory.
Next Steps: Turn Today’s Game into a Weekly Habit
If your family enjoyed this, you’re one routine away from building strong logic skills over time.
Try this simple plan:
- Week 1: 6 rules, one mission, top-to-bottom priority.
- Week 2: Add “memory” (hands empty/full) and one AND rule.
- Week 3: Add debugging: kids must run 3 tests and revise 1 rule.
- Week 4: Create two different “robot brains” for the same mission and compare which is faster or more reliable.
To keep it smooth (and avoid meltdowns), use these guardrails:
- Keep sessions to 20–40 minutes.
- Let the child be the “lead programmer” at least once.
- Celebrate “bugs” as clues, not mistakes.
Want to connect this to on-screen learning later? Once your child understands if-then rules physically, moving into beginner coding (like block-based conditionals) feels far less intimidating—because they already know what the logic is supposed to do.
This weekend, you didn’t just play a game. You practiced the core thinking behind coding and AI—together, at home, without a single screen.
Key Takeaways
- If-then rules are a simple, powerful way to teach kids how computers (and some AI systems) make decisions.
- Rule order and “memory” (state) are key upgrades that quickly deepen the challenge without adding screens.
- Debugging is the real learning moment—use prompts to help kids test, revise, and improve their robot brain.

Auther
Toshendra Sharma