# Rails: an OCaml reconstruction of Railroad Tycoon

> Rails rebuilds the 1990 Railroad Tycoon game in OCaml, implementing railroad construction, train management, AI rivals and economy systems. It loads the user's original DOS PIC, PAN and DTA data files and uses SDL2 for its interface and presentation.

- Type: Case study
- Targets: Game
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/bluddy/rails>
- Primary source: <https://github.com/bluddy/rails/blob/3699efe2344cd2629ab84d0e6d0e2f8d561a3ee0/README.md>
- Catalog page: <https://awesomerea.org/resources/rails-railroad-tycoon-case/>
- Record JSON: <https://awesomerea.org/resources/rails-railroad-tycoon-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/rails-railroad-tycoon-case/index.md)

## Requirements & limits

- **Prerequisites:** Requires the original Railroad Tycoon DOS PIC, PAN and DTA files.
- **Prerequisites:** Source builds require OCaml 5.x, opam, SDL2 and SDL2_mixer development libraries.
- **Limits:** Route history and further testing remain on the feature list.
- **License:** MIT license.

## Primary sources

1. <https://github.com/bluddy/rails/blob/3699efe2344cd2629ab84d0e6d0e2f8d561a3ee0/README.md>
2. <https://github.com/bluddy/rails/blob/3699efe2344cd2629ab84d0e6d0e2f8d561a3ee0/docs/todo.md>

## More in Games

- [RappelzCore & RappelzRust: reconstructing a Rappelz NoLimits client and server](https://awesomerea.org/resources/rappelzcore-rappelzrust-case/index.md) · Case study
- [raw(gl): Another World engine reimplementation](https://awesomerea.org/resources/rawgl-another-world-case/index.md) · Case study
- [rawpsx: an Another World engine reimplementation for PlayStation](https://awesomerea.org/resources/rawpsx-another-world-case/index.md) · Case study
- [Re-Comprehend: rebuilding Penguin Software adventure engines](https://awesomerea.org/resources/re-comprehend-case/index.md) · Case study
- [re2ds: a native Nintendo DS engine for Resident Evil 2](https://awesomerea.org/resources/re2ds-nds-engine-case/index.md) · Case study
- [rea-doom-term: a text-only reconstruction of DOOM](https://awesomerea.org/resources/rea-doom-term-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
