Crossroads

Run two gates at a crossing from one program. Let one road go at a time, with no crashes.

Medium – Hard3 levels2 devices
Play this mission

No hardware, no sign-up: press Play and every mission runs on 3D simulated devices.

Two roads cross, each with its own gate. Cars reach both gates at the same time, so your program has to let one road go at a time. Two cars in the junction crash!

What you'll learn

  • Multiple devices: one program drives two gates
  • Coordination: open the other gate only once the junction is clear
  • Conditions: decide from what the other device is doing

Levels

  1. Take turns: let one road go, and open the other gate once the junction is clear
  2. Two traffic lights: follow the light rules on both gates
  3. Busy junction: more cars, faster, and they give up sooner. Not a single crash

More missions

Rush Hour

Run a traffic gate with blocks. Open it for each car, close it once the car is through, then add traffic lights and a car counter.

  1. Let them through
  2. Traffic lights
  3. Count them
Easy – Medium3 levels1 device
Play this mission