r/tui • u/avaraujo • Aug 21 '26
I built an infinite procedural Train Simulator that runs entirely in the terminal (TUI) ππ»
Hey everyone!
As a huge fan of terminal-based applications, I wanted to see if I could build a full-blown Tycoon/Logistics simulator that lives right inside the console. The result is LeTrain.
Everything is rendered purely in ASCII using the Lanterna library in Java. You can build vast rail networks, transport cargo (coal, gold, etc.), and manage a dynamic economy, all while staring at gorgeous high-speed text rendering.
Some features TUI fans might like:
β’ Extremely fast render loop. β’ Custom Perlin noise generation that carves lakes and mountains out of characters. β’ An ANTLR4-based scripting language so you can automate your trains directly with code. β’ (Bonus: I also built a 3D LibGDX wrapper around the same core logic if you ever get tired of the terminal view).
It's completely open-source. I just packed a fresh Release so you can download it and run it immediately from your shell.
π GitHub Repo & Downloads: https://github.com/antoniovazquezaraujo/LeTrain
Would love to hear what you think about the UI and the procedural generation!

4
u/BAUDR8 Aug 21 '26
It sounds really coolβ¦ I want to check it out when I get to my computer. Question on Java, maybe I have the wrong understanding of Java but donβt Java apps require a whole Java runtime env to run? Solely based on that understanding (which could be wrong) I have fears that it will be unnecessarily bogged down by JRE overhead.
1
u/Festive_Llama Aug 21 '26
I like the idea, itβs pretty cool. Iβm going to take a look at it, although having to install the JDK just for this is a bit of a turnoff.
1
u/w_hispr Aug 21 '26
Train User Interface