Skip to content
cenonym edited this page Jul 1, 2025 · 3 revisions

Welcome to the trmt wiki

trmt is a 2D Turing machine (turmite) simulator for terminal environments. It simulates multiple turmites on a toroidal grid, supporting various rule formats and visualization options. A turmite is a Turing machine operating on a 2D grid. Each head reads the current cell state, writes a new state, turns according to defined rules, and moves forward. trmt can simulate up to 256 heads simultaneously with customizable rules, colors, and display options.

Important

This wiki is under construction and currently has a lot of missing pieces. Please see to the README for a general overview of how trmt works.


Quick start

1. Install trmt:

cargo install trmt

2. Run with default config:

trmt

3. Explore:

Press h for help, generate random simulations with R (shift+r), and experiment with config options.


Configuration

trmt uses TOML configuration files. The default config is created on first run at:

  • Linux/macOS: ~/.config/trmt/config.toml
  • Windows: %APPDATA%\trmt\config.toml

Rule Formats

trmt supports multiple rule notation systems:

  • Sequential: RL (Langton's Ant)
  • Multi-state: RL:LR
  • Explicit transitions: L1>1,R0>0:R1>1,D0>0
  • Standard notation: {{{1, 8, 1}, {1, 8, 1}}, {{1, 2, 1}, {0, 1, 0}}}

Clone this wiki locally