Crate cellular_snapp

Source
Expand description

Create cellular automata.

Inspired by tantan’s 3D cellular automata project, the cellular library aims to allow you to create and simulate 2D and 3D cellular automata. Unlike tantan’s project, this isn’t bound to any one framework or game engine for displaying the automata graphically. This just does the simulation bits.

Modules§

deep
Create deep (3D) cellular automata. This module exists to help you create 3D (aka flat) cellular automata.
flat
Create flat (2D) cellular automata. This module exists to help you create 2D (aka flat) cellular automata.

Structs§

AutomataRules
Any cellular automata has four different rules that govern how it works.

Enums§

Method
Any cellular automata has one of two ways to determine whether any given cell is the neighbor of any other cell. This enum allows choosing which method is used by an automaton to determine neighbors.
Rule
Any cellular automata has two rules that care about neighbors. One rule says how many neighbors a cell needs to be born, and another says how many neighbors a cell needs to continue living. This enum is used to tell the automata how many neighbor counts are valid for a given rule.