YayPlays

How to play

Rail Switch: Choose a level
1Choose a level
Rail Switch: In play
2In play

Controls

TapKeyboard←→↑↓ Space F
  1. Tap a round switch to flip it.
  2. Match each train to the station with its colour and symbol.
  3. Keys: 1-9 or arrows and Space, F for speed.

Rail Switch: all 25 levels finished without a crash, 71 of 75 stars

All 25 levels were finished at the first try without a single crash: 214 trains, 228 switch flips, 71 of 75 stars. Four trains went to a wrong station on purpose, one on level 20, two on level 24 and one on level 25, because our controller found no crash-free routing that saved them. The flips came from our own controller, which never read the coming schedule; it pressed the number keys about ten times a second, faster and steadier than a person.

Switches, not engines

  • Trains come out of the tunnel and keep moving. Flip the numbered round switches (tap, or press 1 to 9) so each train reaches the station with its own colour and symbol.
  • A wrong station costs one of three hearts; a collision between two trains ends the run at once, hearts or not.
  • A switch with a train on it is locked. Two-car trains arrive on level 4, three- and four-car freight on level 6, a second tunnel on level 11. F runs at double speed.
  • Hearts left at the end are the stars.
Level 1: the first of three one-car trains on its way, switch 1 set.
Level 1: the first of three one-car trains on its way, switch 1 set.

How the switches were flipped

Each time a new train appeared, the script listed every route each train on the board could still take to its station and played them forward with the game's own train movement, flipping switches the way it would. It kept the set of routes with no crash and the fewest switch changes. When no such set existed it let one train go to a wrong station rather than risk a crash. About ten times a second it flipped any switch that was not set for the next train heading into it and had no car on it.

LevelsTrainsLongest train (cars)SwitchesOur flipsHearts left
1-53, 5, 4, 6, 61, 1, 1, 2, 21, 1, 2, 2, 32, 4, 5, 5, 93, 3, 3, 3, 3
6-106, 5, 8, 8, 74, 4, 4, 4, 33, 2, 2, 3, 36, 6, 5, 7, 63, 3, 3, 3, 3
11-158, 9, 8, 8, 92, 4, 4, 2, 43, 3, 2, 4, 36, 9, 9, 11, 113, 3, 3, 3, 3
16-2010, 9, 10, 10, 113, 3, 4, 4, 33, 4, 4, 3, 48, 7, 15, 21, 113, 3, 3, 3, 2
21-2512, 12, 13, 13, 144, 4, 4, 4, 44, 3, 3, 4, 411, 11, 11, 13, 193, 3, 3, 1, 2
Level 8: switch 1 set for the red train, 1 of 8 delivered.
Level 8: switch 1 set for the red train, 1 of 8 delivered.

Where the hearts went

Levels 1 to 19 and 21 to 23 ended with all three hearts, even with 13 trains on level 23. The lost hearts came on three of the busiest levels: level 20 (11 trains), level 24 (13 trains, two hearts) and level 25 (14 trains). In each case the controller chose a wrong station over a collision, and the level still finished.

Level 25: one heart already gone, a four-car train locking switch 1.
Level 25: one heart already gone, a four-car train locking switch 1.

Switching by hand

Watch the tunnel queue and set the first switch before the engine reaches it: a switch under a train cannot be changed. Long freight trains block a junction for a while, so send short trains first on shared track. If two trains will meet, giving up one heart beats a crash that ends the run. Use F only once the layout is clear in your head.

Level 25: ALL ARRIVED!, two stars, 3600 points.
Level 25: ALL ARRIVED!, two stars, 3600 points.

Questions

Why can't I flip a switch?
A switch with a train on it is locked until the train has passed.
What happens if two trains collide?
The run ends at once, whatever hearts are left.
How far did our run get?
All 25 levels without a crash, 71 of 75 stars.

· Corrections log

Suggest an idea or report a problem

We keep only your message (and email, if given) to improve the games.