https://github.com/berquerant/ca1d
Execute one-dimensional cellular automaton
https://github.com/berquerant/ca1d
rust
Last synced: about 1 year ago
JSON representation
Execute one-dimensional cellular automaton
- Host: GitHub
- URL: https://github.com/berquerant/ca1d
- Owner: berquerant
- Created: 2022-11-29T12:30:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T09:11:38.000Z (about 2 years ago)
- Last Synced: 2024-04-01T10:27:12.069Z (about 2 years ago)
- Topics: rust
- Language: Rust
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ca1d
```
$ ca1d --help
Execute one-dimensional cellular automaton.
Environmental Variables:
CA1D_RANDOM_SEED:
Seed integer of the random number generator.
CA1D_FIELD_SEED:
Initial state of the automaton.
0 means off state and 1 means on state.
If the string is short to fill the field, the rest is filled by off state.
e.g. field size is 5 and the string is "001" then the initial state will be "00100".
Usage: ca1d [OPTIONS]
Options:
-f, --size
Field width
[default: 120]
-r, --rule-code
Wolfram code
[default: 30]
-n, --generation
Number of turns to proceed
[default: 40]
-0, --off-mark
Off state mark
[default: " "]
-1, --on-mark
On state mark
[default: 1]
-h, --help
Print help information (use `-h` for a summary)
```