Skip to content

A 3D cellular automaton simulator that compiles to WebAssembly, written in Rust

License

Notifications You must be signed in to change notification settings

nstoddard/ca-3d

Repository files navigation

A 3D cellular automaton simulator that compiles to WebAssembly, written in Rust.

Screenshot

Right now this simulates a life-like CA (B6,8/S5,6,7,13), but I haven't yet found any CAs that demonstrate behavior as interesting as that of 2D CAs like Life (B3/S23).

To run this, run the online version, or compile it yourself:

To experiment with different CA rules, modify the update() method in src/ca.rs. A couple of interesting rules are: B6,7/S5,7,8 (has a diagonal spaceship, but quickly expands to fill the whole space), B6,9/S5,6,7,10 (has a similar spaceship, but it seems somewhat more rare), B5/S4,5,10 (which takes a while to settle into still lifes and oscillators).

Not yet implemented:

  • Better rendering performance
  • Controls to move the camera around
  • Multiple cellular automata rules to choose from, without having to recompile

About

A 3D cellular automaton simulator that compiles to WebAssembly, written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published