Skip to main content
← Back to AI Agents & Automation
Middle School Lab

Agent Loop Game

Guide an AI agent through its sense–think–act loop to reach the goal, one decision at a time.

Agent Loop Game 🤖

Help the robot reach the ⭐ star! Each turn the robot SENSESwhat’s around it, THINKS about it, then ACTS. That’s the agent loop — the same loop real AI agents use!

🔍 SENSE
🧠 THINK
⚡ ACT
🤖

🤖 Robot faces: East  |  Turn: 1

Ready

Press Senseto scan what’s around the robot.

Turn 1. Click Sense to scan the surroundings.

How does it actually work?

Every AI agent — from a robot vacuum to ChatGPT — uses a loop with the same three steps you just did: Sense (gather information from the world), Think (decide what to do based on what was sensed), Act (do something that changes the world). Then the loop repeats.

The robot in this game only has three sensors — left, forward, and right. Real robots have many more (cameras, lidar, GPS, microphones). But the loop is always the same: Sense → Think → Act → Sense → …

This pattern is sometimes called the perception-action cycle or the agent loop. It’s one of the most important ideas in all of AI.