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.

Easy – Medium3 levels1 device
Play this mission

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

A car is coming up to the gate! When it presses the button, your program has to open the gate, wait for the car to pass, and close it again. Never close it on a car.

What you'll learn

  • Events: run blocks when a button is pressed
  • Sequences: green light → open → close → yellow → red
  • Delays: wait for the car before closing
  • Counters: count every car that gets through

Levels

  1. Let them through: open the gate when a car arrives, close it once the car is through
  2. Traffic lights: green before you open; after closing, yellow for a second, then red
  3. Count them: the same light rules with faster cars, and count every car

More missions

Crossroads

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

  1. Take turns
  2. Two traffic lights
  3. Busy junction
Medium – Hard3 levels2 devices
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