Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.24 KB

README.md

File metadata and controls

25 lines (21 loc) · 1.24 KB

ca.rs: Simulate an elementary one-dimensional cellular automaton.

Usage: ca [options]
Try 'ca --help' for more information.

Options:
    -r, --rule=RULE     Use the given rule [default: 90].
    -c, --cells=CELLS   Simulate the given number of cells [default: 80].
    -n, --steps=STEPS   Run the simulation for a given number of generations [default: 24].
    -d, --dead=CHAR     Use the given character to display "dead" cells [default: .].
    -l, --live=CHAR     Use the given character to display "live" cells [default: #].
    --start=STRING      Initialize the world with the given values.  STRING should contain
                        only '.' or '#' characters, or the characters specified by the
                        d and l options.  Can be RANDOM to enable the --random flag.
    --random=PERCENT    Used with the --start flag; initialize the world randomly, giving
                        each cell a PERCENT chance to start live.  [default: 0.5].
    -w, --wrap          If present, causes the world to that the first and last cells are
                        neighbors.
    --skip-to-end       Only output the state of the last generation

    -h, --help          Show this message.
    --version           Show the version number.