cellular-automata-rs
Research-grade cellular automata library in pure Rust.
Features
- Elementary cellular automata: All 256 Wolfram rules with configurable width and wrapping
- Conway's Game of Life: Arbitrary grid sizes with configurable neighbor rules
- Langton's Ant: Multiple ant support and color variants
- Cyclic automata: Configurable state count and neighborhood range
Usage
use ElementaryCA;
use GameOfLife;
use LangtonsAnt;
use CyclicCA;
// Elementary CA - Rule 110
let mut ca = new;
ca.set_single_center;
let state = ca.step;
// Game of Life
let mut gol = new;
gol.set;
gol.step;
// Langton's Ant
let mut ant = new;
ant.step;
// Cyclic CA
let mut cyclic = new;
cyclic.randomize;
cyclic.step;
License
MIT OR Apache-2.0