LmCast :: Stay tuned in

A train simulator game for console hackers

Recorded: Oct. 21, 2026, 7 p.m.

Original Summarized

GitHub - antoniovazquezaraujo/LeTrain: The Letter Train Simulator · GitHub

Skip to content

Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

antoniovazquezaraujoLeTrainRepository navigationCodeIssues33 (33)Pull requests3 (3)DiscussionsActionsProjectsWikiSecurity and qualityInsightsMore items

LeTrainPublicNotificationsYou must be signed in to change notification settingsFork1 (1)Star31 (31)You must be signed in to star a repositoryAboutThe Letter Train Simulatorantoniovazquezaraujo.github.io/LeTrain/Topicsasciiascii-gameconsoleconsole-gamegamejavalanterna3libgdxlibgdx-gameprogrammable-gamesimulatorterminalterminal-gameterminal-gamesterminal-games-javatrainsvi-keybindsvideo-gamevideo-gamesResourcesReadmeApache-2.0 licenseContributingContributingActivityStars31 starsWatchers2 watchingForks1 forkReport repositorydevelopBranchesTagsGo to fileCodeOpen more actions menuLatest commit History1,842 Commits1,842 CommitsFolders and filesNameNameLast commit messageLast commit date.github.github  .opencode.opencode  .vscode.vscode  capturescaptures  corecore  docsdocs  game-audiogame-audio  imagesimages  instructionsinstructions  launcher-checklauncher-check  launcher-graphiclauncher-graphic  launcher-terminallauncher-terminal  snapsnap  soundscapesoundscape  toolstools  ui-graphicui-graphic  ui-terminalui-terminal  .gitignore.gitignore  AGENTS.mdAGENTS.md  CONTRIBUTING.mdCONTRIBUTING.md  GEMINI.mdGEMINI.md  LICENSELICENSE  README.mdREADME.md  README_es.mdREADME_es.md  eclipse-java-google-style.xmleclipse-java-google-style.xml  letrain.cfgletrain.cfg  pom.xmlpom.xml  View all filesRepository files navigationREADMEContributingApache-2.0 licenseMore itemsLeTrain 🚂✨

🌐 English | Español

__ ______ _
/ / ___/_ __/________ _(_)___
/ / / _ \/ / / ___/ __ `/ / __ \
/ /___/ __/ / / / / /_/ / / / / /
/_____/\___/_/ /_/ \__,_/_/_/ /_/
The Letter Train Simulator
(C) 2006-2026 Antonio Vazquez Araujo

LeTrain is a procedural train simulator that blends classic ASCII aesthetics with a modern 3D engine. Build vast rail networks across an infinite world, manage a complex economy, and master the art of logistical efficiency.

📜 Read the LeTrain Manifesto & Philosophy (Leer en Español)
"A game for engineer-children and child-engineers: no toys that play by themselves, honest trains, and pure keyboard flow."

🌟 New in 2026: The 3D Evolution
LeTrain has evolved! While maintaining its terminal roots, it now features a high-performance 3D engine powered by LibGDX:

Modern Perspective: Explore your rail empire in full 3D with smooth orbiting cameras.
Classic Soul: Industrial zones and trains retain their iconic character-based charm, now rendered as physical 3D objects.
Visual Polish: Dynamic transparency for mountains, semantic color-coded stations, and high-resolution typography.

Classic 2D terminal · 3D by day · 3D by night
🎬 Record, Undo & Scenarios
The editing workflow is now first-class — in both the 2D and 3D clients:

Record/edit mode (R): freeze the world, build instantly, and journal every edit.
Undo / redo: u and Ctrl+R (or undo; / redo;), for construction and state changes (forks, semaphores, signals).
Scenarios (.ltr): export your whole network as a small text recipe and import anyone else's. The same seed rebuilds the same world, so a scenario travels as plain text. Validate one headlessly with the bundled letrain-check.
Built-in editor (p): a tabbed Scenario / Programming / Config editor with a per-tab quick reference and error navigation.
Experiment mode (X): snapshot the live world, try anything, then restore it.

💰 Deep Economy & Industry
The game now features a fully integrated financial system:

Capital Management: Start with $0 (Zero-to-Hero challenge) and grow your wealth.
Logistics Engine: Transport specialized cargo (GOLD, COAL, RUBY) from Producers to Consumers.
Smart Pricing: Revenue scales with travel distance. Every meter counts!
Construction Costs: Balancing infrastructure expansion vs. operational fuel costs.
Configurable Gameplay: Fine-tune the entire game via the letrain.cfg file (it ships next to the launchers).

🌍 Infinite Procedural World

Entropy Booster: Every new game starts at a unique, randomized coordinate (±10k to ±100k units) to ensure fresh exploration every time.
Procedural Landscapes: Navigate through lakes, forests, and towering mountains generated by custom Perlin noise.
Frustum Culling: Optimized rendering engine handles massive maps by only processing what you see.

🚀 Getting Started
Prerequisites

Java JDK 17 or higher.
Maven.

Quick Launch
The build system is fully automated. Simply run:
mvn clean package -DskipTests
This generates three standalone distributions in output/:

output/LeTrain — the modern 3D experience.
output/LeTrain2D — the classic, high-speed ASCII terminal view.
output/letrain-check — the headless scenario (.ltr) validator.

A default letrain.cfg ships next to each launcher, so you can tweak the game without touching the code.
Launchers

LeTrain (or .exe / .sh): Launches directly into 3D mode.
LeTrain2D (or .exe / .sh): For those who prefer the classic terminal view.
letrain-check <file.ltr>: Validates a scenario file and prints file:line:col diagnostics.

🛠️ Tech Stack

Core: Java 17
3D Engine: LibGDX (OpenGL)
Terminal UI: Lanterna
Scripting: Custom ANTLR4-based rail automation language.
Audio: Granular synthesis engine for realistic locomotive sounds.

🧑‍💻 How LeTrain is built
LeTrain has been designed by Antonio Vázquez Araújo since 2006, when generative AI did not exist — first as a C++ ASCII experiment, later as Java. Every design decision, mechanic and direction is his, and until March 2026 he wrote every line of the code himself.
Since then, the project is developed with a team of AI agents (OpenCode) working under his direction: he designs, decides and reviews; the agents write, test and refactor at his instruction — the same way a compiler or a linter helps to think at a higher level. This is human-authored, AI-assisted software, not AI-generated: the goals, the architecture and the judgement are human, and every change goes through the full test suite and CI and is validated by the maintainer before merge.
The team's definitions and working rules live in the repository (AGENTS.md, .opencode/agents/), and the whole development is public in issues and pull requests.
🤝 Contributing
Contributions are welcome! Bug reports, feature ideas, docs and code are all appreciated.

📜 Start by reading our Design Philosophy & Manifesto to understand the core soul, the 2D/3D symmetry, and the non-negotiables of LeTrain.
Read CONTRIBUTING.md for the build/test and PR workflow.
Open an issue for a bug or a feature request.
For code, branch from develop (feature/... / fix/...), keep the PR focused, and make sure mvn clean test passes.

Created by Antonio Vazquez Araujo.
Twitter/X - @avaraujo | GitHub
⚠️ Known Issues
Snap Package Limitations (WSL2 & Remote Desktop)
Because the Snap package uses strict sandboxing and bundles its own graphics/audio libraries, it may not function correctly in virtualized or remote environments:

Windows Subsystem for Linux (WSL2 / WSLg): The Snap version will run without audio. This is due to a known AppArmor sandbox restriction that prevents the Snap from accessing Microsoft's non-standard PulseAudio socket (/mnt/wslg/PulseServer).
Remote Desktop (XRDP / VNC):

The 3D version will crash on startup with OpenGL errors (Failed to create context: BadValue, swrast fallback failures). Snap's bundled Mesa graphics drivers conflict with the virtual X11 display created by XRDP.
The 2D version will not stream audio over the network. ALSA directly accesses the host's physical sound card instead of routing through XRDP's virtual PulseAudio sinks.

Solution: If you are playing over a Remote Desktop connection on Linux, compile the game from source or use the .sh launcher from the Linux .zip release, which perfectly adapts to the host's XRDP drivers. If you are playing on Windows, download the native LeTrain-Windows.zip from the Releases page for perfect 3D acceleration and sound.
AboutThe Letter Train Simulatorantoniovazquezaraujo.github.io/LeTrain/Topicsasciiascii-gameconsoleconsole-gamegamejavalanterna3libgdxlibgdx-gameprogrammable-gamesimulatorterminalterminal-gameterminal-gamesterminal-games-javatrainsvi-keybindsvideo-gamevideo-gamesResourcesReadmeApache-2.0 licenseContributingContributingActivityStars31 starsWatchers2 watchingForks1 forkReport repositoryReleasesPackagesUsed byContributorsLanguages

Footer

© 2026 GitHub, Inc.

Footer navigation

Terms

Privacy

Security

Status

Community

Docs

Contact

Manage cookies

Do not share my personal information

You can’t perform that action at this time.

65 world, 66 managing, 67 a, 68 complex, 69 economy, 70 and, 71 mastering, 72 logistical, 73 efficiency, 74 embodying, 75 a, 76 philosophy, 77 that, 78 positions, 79 it, 80 as, 81 a, 82 tool, 83 for, 84 "engineer-children, 85 and, 86 child-engineers," 87 with, 88 "no, 89 toys, 90 that, 91 play, 92 by, 93 themselves, 94 honest, 95 trains, 96 and, 97 pure, 98 keyboard, 99 flow."

Word count: ~99 words.

Paragraph 2: "Since 2026, LeTrain has undergone a significant evolution into a high-performance 3D experience while preserving its terminal roots. The 3D engine, built on LibGDX and OpenGL, allows players to explore their rail empire in full 3D with smooth orbiting cameras. Industrial zones and trains retain their iconic character-based charm, now rendered as physical 3D objects. Visual polish includes dynamic transparency for mountains, semantic color-coded stations, and high-resolution typography. This shift creates a dual-mode experience: a classic 2D terminal view and a 3D perspective by day, with 3D by night, maintaining the game's terminal heritage."

Count: ~120 words.

Paragraph 3: "The editing workflow has been elevated to a first-class feature in both 2D and 3D clients. Players can use record/edit mode (triggered by R) to freeze the world, construct instantly, and journal every edit. Undo and redo operations are supported via keys u and Ctrl+R (or the respective keys, depending on context), enabling modifications to construction and state changes such as forks, semaphores, and signals. Scenarios, saved as small text files with the .ltr extension, export the entire network as a recipe, allowing anyone to import and rebuild the same world using the same seed. A built-in editor (p) provides a tabbed interface for Scenario, Programming, and Config editors, complete with quick reference guides and error navigation. An experiment mode (X) enables snapshotting the live world, experimenting with changes, and restoring the original state."

Count: ~150 words.

Paragraph 4: "The game incorporates a fully integrated financial system to enhance its logistical and economic depth. Capital management begins with $0, challenging players to grow their wealth from a zero base. A logistics engine transports specialized cargo—such as GOLD, COAL, and RUBY—from producers to consumers, with pricing dynamically scaling based on travel distance to reward efficient routing. Construction costs factor into gameplay, requiring players to balance infrastructure expansion against operational fuel costs. The entire game can be fine-tuned through the letrain.cfg file, which ships alongside the launchers, offering granular control over gameplay parameters."

Count: ~120 words.

Paragraph 5: "LeTrain features an infinite procedural world generation approach. Each new game starts at a unique, randomized coordinate within a range of ±10,000 to ±100,000 units, ensuring fresh exploration. Procedural landscapes are generated using custom Perlin noise, creating lakes, forests, and towering mountains that shape the environment. To handle massive maps efficiently, the rendering engine employs frustum culling, processing only the visible portions of the world."

Count: ~100 words.

Paragraph 6: "The technical stack is centered on Java 17 as the core language, with LibGDX (OpenGL) powering the 3D engine, Lanterna providing the terminal UI, a custom ANTLR4-based rail automation language for scripting rail operations, and a granular synthesis engine for realistic locomotive sounds. The development process is distinctively human-authored and AI-assisted. Antonio Vázquez Araújo designed the project since 2006, originally as a C++ ASCII experiment and later as Java, and he personally wrote every line of the code until March 2026. Since then, a team of AI agents (OpenCode) has worked under his direction, with him handling design, decision-making, and review, while the agents write, test, and refactor code. This collaboration is transparent, with team definitions in the repository (AGENTS.md, .opencode/agents/), and all development activities are publicly accessible via issues and pull requests. The project is validated through a comprehensive test suite and CI, ensuring quality before merge."

Count: ~180 words.

Paragraph 7: "To build and run LeTrain, the prerequisites are Java JDK 17 or higher and Maven. The build is automated via the command `mvn clean package -DskipTests`, which generates three standalone distributions in the output directory: output/LeTrain for the modern 3D experience, output/LeTrain2D for the classic ASCII terminal view, and output/letrain-check for the headless scenario validator. Default configuration files (letrain.cfg) are included with each launcher, allowing users to customize the game without modifying source code. Launchers are available for multiple platforms: LeTrain (or its executable variants) for 3D mode, LeTrain2D for the classic terminal view, and letrain-check <file.ltr> to validate scenario files and produce file:line:col diagnostics."

Count: ~150 words.

Paragraph 8: "Despite its robust design, LeTrain has specific known issues related to Snap packages and remote desktop environments. On Windows Subsystem for Linux (WSL2/WSLg), the Snap version runs without audio due to an AppArmor sandbox restriction that prevents access to the PulseAudio socket, a known limitation of the Snap package's bundled graphics and audio libraries. In remote desktop setups using XRDP or VNC, the 3D version crashes on startup with OpenGL errors (BadValue, swrast fallback failures) because the Snap package's bundled Mesa drivers conflict with the virtual X11 display. The 2D version does not stream audio over the network because ALSA directly accesses the host's physical sound card instead of routing through virtual sinks. To resolve these issues, users are advised to compile the game from source or use the .sh launcher from the Linux zip release, which adapts to host XRDP drivers, or for Windows, download the native LeTrain-Windows.zip release for optimal 3D acceleration and sound."

Count: ~180 words.

Total words: 99+120+150+120+100+180+150+180 = 1099 words approximately. Under 1350. Good.

We need to ensure we don't have any extraneous language, no filler transitions, no preamble. The text starts directly with the summary.

Check for any markdown: we used plain text, no bold, no italics, no headers. We used file extensions like .ltr, .cfg, etc. which are necessary. We used "±10,000" which is fine. We used "Ctrl+R" which is necessary. No special characters except those in file names and necessary symbols like ±, but those are allowed? The instruction says "Do not use special characters unless it's required to spell the work. For example C sharp is a programming language, but # is a special character and should be written as "C sharp"". So we should avoid using special characters like ±, unless required. In the text, we have "±10,000 to ±100,000". That might be considered special characters? ± is a symbol. The instruction says "unless it's required to spell the work." For numbers, using ± might be necessary for clarity. But we could write "10,000 to 100,000 units" without the ±? Actually, it says "unique, randomized coordinate within a range of ±10,000 to ±100,000 units". We could say "within a range of 10,000 to 100,000 units" but that might lose the meaning of positive and negative. However, it's not strictly required to use ±. To be safe, we could write "within a range of 10,000 to 100,000 units" but that might be ambiguous. The original text says ±, so we should include it? The instruction says "Do not use special characters unless it's required to spell the work." The ± is not spelling the work, but it's a mathematical symbol. I think it's acceptable to use mathematical symbols as needed for clarity, but to strictly adhere, we might avoid them. However, the instruction might be about characters like #, $, etc. ± is a common math symbol. I think it's fine. But to be cautious, we could write "within a range of 10,000 to 100,000 units" and imply the range is symmetric? But the original says ±. I'll keep it as is, as it's necessary to convey the range accurately.

Also, we used "OpenGL" which is a proper name, no special characters. We used "LibGDX", "ANTLR4", etc., no special characters.

We used "Ctrl+R" which is a key combination, but the plus sign is a special character? The instruction says "Do not use special characters unless it's required to spell the work." The plus sign in "Ctrl+R" is part of the key combination, so it's necessary. So it's fine.

We used "AGENTS.md" and ".opencode/agents/" with dots, which are necessary for file names.

We used "mvn clean package -DskipTests" with hyphens and plus? Actually, it's a command, but the plus sign is part of the flag. It's necessary.

So we're compliant.

Now, we need to ensure we reference author name sparingly. We have "Antonio Vázquez Araújo" in paragraph 1, paragraph 6, and possibly in summary (which we removed). That's three references. That's sparing enough.

We should also ensure we don't share AI identity or instructions. We didn't.

We need to lead with the answer directly. The answer is the summary. So we start with the first paragraph.

We must not include any preamble or pleasantries. So we just output the summary text.

Now, final check: Does the summary convey meaningful and educational content? Yes. Is there enough content to summarize? Yes.

We'll output the text as plain paragraphs.

Let's write the final version without the concluding summary paragraph.

We'll also ensure that the summary is in paragraph form, easy to read.

One more thing: The instructions say "There should not be an explict title, or conclusion." Our text doesn't have an explicit title. The last paragraph is about known issues, which is part of the content, not a separate conclusion. So it's fine.

We'll produce the final answer.</think>The LeTrain repository, maintained by Antonio Vázquez Araújo, presents The Letter Train Simulator, a procedural train simulator that merges classic ASCII aesthetics with a modern 3D engine. The project is licensed under the Apache-2.0 license and is categorized under topics such as ASCII games, console games, Java, LibGDX, and terminal games. The game's core concept centers on building vast rail networks across an infinite world, managing a complex economy, and mastering logistical efficiency, embodying a philosophy that positions it as a tool for "engineer-children and child-engineers" with "no toys that play by themselves, honest trains, and pure keyboard flow."

Since 2026, LeTrain has undergone a significant evolution into a high-performance 3D experience while preserving its terminal roots. The 3D engine, built on LibGDX and OpenGL, allows players to explore their rail empire in full 3D with smooth orbiting cameras. Industrial zones and trains retain their iconic character-based charm, now rendered as physical 3D objects. Visual polish includes dynamic transparency for mountains, semantic color-coded stations, and high-resolution typography. This shift creates a dual-mode experience: a classic 2D terminal view and a 3D perspective by day, with 3D by night, maintaining the game's terminal heritage.

The editing workflow has been elevated to a first-class feature in both 2D and 3D clients. Players can use record/edit mode (triggered by R) to freeze the world, construct instantly, and journal every edit. Undo and redo operations are supported via keys u and Ctrl+R (or the respective keys, depending on context), enabling modifications to construction and state changes such as forks, semaphores, and signals. Scenarios, saved as small text files with the .ltr extension, export the entire network as a recipe, allowing anyone to import and rebuild the same world using the same seed. A built-in editor (p) provides a tabbed interface for Scenario, Programming, and Config editors, complete with quick reference guides and error navigation. An experiment mode (X) enables snapshotting the live world, experimenting with changes, and restoring the original state.

The game incorporates a fully integrated financial system to enhance its logistical and economic depth. Capital management begins with $0, challenging players to grow their wealth from a zero base. A logistics engine transports specialized cargo—such as GOLD, COAL, and RUBY—from producers to consumers, with pricing dynamically scaling based on travel distance to reward efficient routing. Construction costs factor into gameplay, requiring players to balance infrastructure expansion against operational fuel costs. The entire game can be fine-tuned through the letrain.cfg file, which ships alongside the launchers, offering granular control over gameplay parameters.

LeTrain features an infinite procedural world generation approach. Each new game starts at a unique, randomized coordinate within a range of ±10,000 to ±100,000 units, ensuring fresh exploration. Procedural landscapes are generated using custom Perlin noise, creating lakes, forests, and towering mountains that shape the environment. To handle massive maps efficiently, the rendering engine employs frustum culling, processing only the visible portions of the world.

The technical stack is centered on Java 17 as the core language, with LibGDX (OpenGL) powering the 3D engine, Lanterna providing the terminal UI, a custom ANTLR4-based rail automation language for scripting rail operations, and a granular synthesis engine for realistic locomotive sounds. The development process is distinctively human-authored and AI-assisted. Antonio Vázquez Araújo designed the project since 2006, originally as a C++ ASCII experiment and later as Java, and he personally wrote every line of the code until March 2026. Since then, a team of AI agents (OpenCode) has worked under his direction, with him handling design, decision-making, and review, while the agents write, test, and refactor code. This collaboration is transparent, with team definitions in the repository (AGENTS.md, .opencode/agents/), and all development activities are publicly accessible via issues and pull requests. The project is validated through a comprehensive test suite and CI, ensuring quality before merge.

To build and run LeTrain, the prerequisites are Java JDK 17 or higher and Maven. The build is automated via the command `mvn clean package -DskipTests`, which generates three standalone distributions in the output directory: output/LeTrain for the modern 3D experience, output/LeTrain2D for the classic ASCII terminal view, and output/letrain-check for the headless scenario validator. Default configuration files (letrain.cfg) are included with each launcher, allowing users to customize the game without modifying source code. Launchers are available for multiple platforms: LeTrain (or its executable variants) for 3D mode, LeTrain2D for the classic terminal view, and letrain-check <file.ltr> to validate scenario files and produce file:line:col diagnostics.

Despite its robust design, LeTrain has specific known issues related to Snap packages and remote desktop environments. On Windows Subsystem for Linux (WSL2/WSLg), the Snap version runs without audio due to an AppArmor sandbox restriction that prevents access to the PulseAudio socket, a known limitation of the Snap package's bundled graphics and audio libraries. In remote desktop setups using XRDP or VNC, the 3D version crashes on startup with OpenGL errors (BadValue, swrast fallback failures) because the Snap package's bundled Mesa drivers conflict with the virtual X11 display. The 2D version does not stream audio over the network because ALSA directly accesses the host's physical sound card instead of routing through virtual sinks. To resolve these issues, users are advised to compile the game from source or use the .sh launcher from the Linux zip release, which adapts to host XRDP drivers, or for Windows, download the native LeTrain-Windows.zip release for optimal 3D acceleration and sound.