YayPlays

How to play

Single Track: Choose a level
1Choose a level
Single Track: In play
2In play

Controls

TapKeyboard←→↑↓ Space
  1. Tap the + or - side of a cell to change how many minutes a train waits at that station.
  2. Press RUN to test the timetable.
  3. Keys: arrows, +/-, Space.

Single Track: why the empty timetable always crashes, where to put the wait, and hitting par

You run a country line with one track and a few passing loops. Every train has a departure time and a deadline, and your only tool is how many minutes each train waits at each station. There are no signals: trains follow the timetable, and two trains heading toward each other on the same stretch meet nose to nose. We ran every timetable first with no waits at all, the way a new dispatcher might: all eight crashed (STANDOFF!). Then we added waits by reading where the trains met, and all eight ran on time with exactly the par total, three stars each.

How the line works

  • A passing loop is a station where two trains can stand side by side. Between loops there is one track.
  • Two trains going opposite ways on the same stretch: STANDOFF!, the line locks.
  • A loop holds two trains; a third arriving is Loop is full!
  • A train arriving after its deadline is "Late train!" Every train in on time: ALL ON TIME!
Timetable 3 run with no waits: the two trains meet on the same stretch, STANDOFF! at minute 10.
Timetable 3 run with no waits: the two trains meet on the same stretch, STANDOFF! at minute 10.

Reading the train graph

The graph on the right is the whole run at once: time across, stations up, one line per train. Where two lines cross between two station rows, that is a standoff. The fix is a wait at the station just before that stretch, for one of the two trains, long enough for the other to clear it, so the lines cross exactly on a loop row instead. Of the two choices, take the one that costs fewer minutes and does not push that train past its deadline.

Timetable 3: three minutes of waiting for train 2 at station 2 (the loop) moves the crossing onto the loop. Total 3, par 3.
Timetable 3: three minutes of waiting for train 2 at station 2 (the loop) moves the crossing onto the loop. Total 3, par 3.

Timetables solved with the fewest waiting minutes

From timetable 6 slow freight trains appear. They take twice as long over each stretch, so fast trains behind them either wait or need to pass them on a loop.

TimetableTrains (slow freight)With no waitsOur waitsTotal / par
12standoffone train waits 6 min6 / 6
22standoffone train waits 7 min7 / 7
32standofftrain 2 waits 3 min at the loop3 / 3
42standoffone train waits 3 min3 / 3
53standofftrain 1 waits 7 min before leaving7 / 7
63 (2 slow)standoff8 min + 4 min12 / 12
73standoffone train waits 10 min10 / 10
83 (1 slow)standoffone train waits 12 min12 / 12

Stars and the 25 timetables

  • A timetable whose total waiting equals par (shown at the top right) is three stars, within two minutes of it two, otherwise one.
  • 25 timetables on three lines, from one loop and two trains up to three loops and four trains.
  • Pick a cell of the timetable with the arrows, add a minute with + or Enter, take one off with − or Backspace, run the trains with Space and reset with R.
Timetable 6: ALL ON TIME!, 12 minutes of waiting against a par of 12, three stars.
Timetable 6: ALL ON TIME!, 12 minutes of waiting against a par of 12, three stars.

Questions

Why does pressing RUN with no changes always fail?
Every timetable is built so that the empty one ends in a standoff or a late train. At least one wait is always needed.
Which train should wait?
The one whose wait costs fewer minutes without making it late; put the wait at the station just before the stretch where they would meet.

· Corrections log

Suggest an idea or report a problem

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