I'm building a new terminal for my minecart tracks:
Currently there are 8, I may add more later. What I'd like to add is a single arrival/departure track, with buttons to select destination. Pressing the button would switch the track layout to connect the departure track to the correct outgoing track. Ideally, arrivals would all be routed to the same spot, but that's of less importance.
What's the best way to implement this? I want a layout that's reasonably compact, and extensible, and doesn't rely on bugs.