This is a program to simulate Matt Parkers Train Puzzle. Just follow the instructions on the screen.
Based on Matt Parker's train puzzle. Link to the puzzle: think-maths.co.uk/train-puzzle