cellular_automaton/rule.rs
1//! Rules for cellular automata.
2
3/// A list containing values that represent the number of state-1 neighbors that
4/// must exist for a state-0 cell to be become state-1.
5pub type Birth = Vec<u8>;
6
7/// The number of possible cell states.
8pub type Generation = u8;
9
10/// A list containing values that represent the number of state-1 neighbors that
11/// must exist for a state-1 cell to remain state-1.
12pub type Survival = Vec<u8>;