Modules

Structs

  • defines the rules of the world and stores the world

Functions

  • create a universe for Conway’s game of life and set all cells to dead
  • create a new universe with some defaults
  • create a semi totalistic automata, note that only neighbors are counted, as such only 9 bits from either law is considered
    laws are formatted like ie 0x1000_0001_0 which indicates that a cell survives if and only if it has eight or two neighbors
  • create a semi totalistic automata, note that only neighbors are counted (non-nine sum), ranges used
  • create a totalistic universe of the given code. 6 MSDs of the binary number are ignored (Uses non-wrapping sum). LSD corresponds to zero action laws are formatted like ie 0x01000_00110 which indicates that a cell survives if and only if it has eight, three or two neighbors

Type Aliases

  • a function that given a state, returns if it should be included in a count
  • a rule that dictates the state that a cell becomes