Decision makingAges 9–144 levels

Smart Traffic

Program the city’s traffic lights with IF / ELSE rules and keep everyone moving safely.

How to play

Goal: Build rules that choose the right light for every test situation.

Controls: Use the drop-down menus to build your rules, then run the tests.

What you'll learn: Computers make decisions with rules: IF a condition is true THEN do one thing, ELSE do something else. Rules are checked in order and the first match wins.