What is a Rule-Based AI System?

Read this page! You will be quizzed on this later! 😉

🤖 The Core Idea

A rule-based AI doesn't think or learn — it follows a list of IF → THEN rules.
These rules are made of conditions and actions.

The agent checks its sensors, finds the first matching rule, and executes the action.

IF [condition] THEN [action]
IF gap_ahead THEN jump

📡 Sensors & Conditions

The agent uses sensors to detect its environment and figure out the conditions in your IF statements.

  • Gap ahead — a drop in the floor is detected
  • Coin nearby — a coin is within range
  • Hazard nearby — a spike or enemy is detected
  • Grounded — the agent is standing on a surface

⚙️ Actions

The THEN side of a rule tells the agent what action to take when a condition matches. Rules are checked from top to bottom — order matters!

  • Jump — leap upward
  • Move left / Move right — walk horizontally
  • Dash — sprint quickly in current direction
  • Change direction — reverse current movement

🏆 What You'll Do

Working together, you'll build an AI agent using IF→THEN rules, then compete head-to-head with different strategies on an identical parkour map.

Before that, you'll get more practice to better understand rule-based systems!

ACTIVE RULE ▸ Watching agent…