Next Station
Run a train station from your program. Stop each train long enough for its passengers, then send it on its way.
No hardware, no sign-up: press Play and every mission runs on 3D simulated devices.
Wooden trains come out of a tunnel and run past your station. When a train stands at the platform, your program has to hold it there long enough for the passengers, then let it go. Roll through and everyone is left behind. Wait too long and the next train runs into it!
What you'll learn
- Waiting on purpose: a delay of a few seconds, at the right moment
- Sequences: stop, wait, signal, go, in that order every time
- Counting: count every train that goes by with a counter
Levels
- All aboard: stop every train for 3 seconds, then send it off
- Station signal: red while it stands, green to leave, yellow in between
- Express!: odd-numbered trains stop, even-numbered ones are expresses that run straight through, and you count them all