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

Next Station

Run a train station from your program. Stop each train long enough for its passengers, then send it on its way.

  1. All aboard
  2. Station signal
  3. Express!
Easy – Hard3 levels1 device
Play this mission

Sorting Yard

Sort trains with your program. Read a sensor to tell what kind of train is coming, then throw the points to send it the right way.

  1. Left or right?
  2. Passengers only
  3. Count them apart
Easy – Hard3 levels1 device
Play this mission

Rocket Landing

Launch a rocket booster to space, then fly it back down and land it standing up, like SpaceX. Your program reads the speed detector and works the engine itself.

  1. To space and back
  2. Droneship
  3. Low fuel
Easy – Hard3 levels1 device
Play this mission