Discrete Event Simulation in PicoLisp can be used to create a fun model railroad simulation with tracks, trains, and switches all represented in ASCII. The trains, or “bots,” move, shunt, and wait based on a dynamic simulation that makes the entire experience engaging. Containing source codes on GitLab or software-lab.de, the simulation is controlled through commands to start, stop, and adjust speed. The ASCII track network is implemented using a networked linked lists structure, allowing for a complex layout with loops and switches. A detailed train simulation, complete with acceleration, deceleration, and shunting, can be created, providing a unique and entertaining way to visualize model railroads.
https://picolisp-explored.com/a-railroad-simulation-with-des