Class ElementaryCellularAutomaton

A object for simulate the Elementary cellular automaton(Rule **).

Implements

Constructors

  • Initialize machine with given arguments.

    When it has infinite cells(infiniteLeft and/or infiniteRight is true), this class only supports the following rule
    If emptyCell == 0, then rule must be even;
    else rule must be less than 128.

    Parameters

    • rule: number

      the rule number.

    • __namedParameters: {
          emptyCell?: 0 | 1;
          infiniteLeft?: boolean;
          infiniteRight?: boolean;
      } = {}
      • Optional emptyCell?: 0 | 1
      • Optional infiniteLeft?: boolean
      • Optional infiniteRight?: boolean

    Returns ElementaryCellularAutomaton

Properties

cells: null | ECACells = null
emptyCell: 0 | 1
infiniteLeft: boolean
infiniteRight: boolean
rule: number

Methods

Generated using TypeDoc