Expand description
§golback
A fast, no-fuss Game of Life backend. Drop it in, feed it cells, and let it run.
golback exposes a clean API for simulating Conway’s Game of Life (and beyond).
Under the hood it uses HashLife, a memoized quadtree algorithm that makes large
or long-running simulations orders of magnitude faster than naive approaches.
§Features
- Clean API: create a universe, load a pattern, advance, inspect
- HashLife engine for exponential speedup on large patterns and long runs
- Load from RLE files or pass in raw coordinates
- Any birth/survival ruleset, not just B3/S23
- Toggle, add, or delete individual cells at any point
§Quick Start
use golback::universe::Universe;
let mut universe = Universe::new();
universe.init(3);
universe.load("glider.rle".to_string()).unwrap();
universe.advance(100);
println!("Population: {}", universe.population());