Goal
The position or result the system is trying to reach.
Topic Guide
In a feedback loop, a system checks the result of an action before deciding what to do next.
A robot turns, reads the sensor again, and decides whether the correction helped. A game can check position after movement and return a player who has crossed the boundary.
A cyclist looks ahead and makes many small steering corrections. A robot patrol uses sensor readings instead of eyesight, but it also has to check what happened after each turn.
The position or result the system is trying to reach.
A measurement of the current result.
The gap between the measurement and the goal.
An action chosen to reduce the gap.
Return a sprite after its coordinates leave the allowed area.
Adjust the steering after each surface reading.
Compare the measured speed with a target and change the motor command.
Use sound or text to show whether a rule has fired.
Program connections
Students write commands, wire simple circuits, read sensors, and trace physical cause and effect through the Sense–Decide–Act loop.
Students author games, animations, simulations, and strange interactive stories while learning how events, rules, and state fit together.
A possible later program for testing patterns, predictions, prompts, mistakes, and the limits of AI tools.
The system keeps correcting without checking whether the first change helped.
The result overshoots the goal and swings back the other way.
The new reading arrives too late to guide the next action.
There is no target value against which to judge the result.
Design a repeating patrol that notices an obstacle, tries a response, and checks whether the response worked.
See how it worksBuild a reaction timer with a random delay, an early-press rule, and results in the correct units.
See how it worksBuild a one-room platform game with a controlled jump, safe platforms, lava, and a clean restart.
See how it works