https://github.com/picojr/cell
cellular automaton
https://github.com/picojr/cell
automata cellular python
Last synced: 29 days ago
JSON representation
cellular automaton
- Host: GitHub
- URL: https://github.com/picojr/cell
- Owner: PicoJr
- License: gpl-3.0
- Created: 2017-09-26T19:02:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-26T19:06:53.000Z (over 8 years ago)
- Last Synced: 2024-02-07T05:58:12.278Z (over 2 years ago)
- Topics: automata, cellular, python
- Language: Python
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elementary Cellular Automaton
**TL;DR**: display [elementary cellular automaton](https://en.wikipedia.org/wiki/Elementary_cellular_automaton).
## Usage
See `python3 main -h`
## Example
[Rule 110](https://en.wikipedia.org/wiki/Rule_110) produces triangle patterns.
`python3 main.py 110 8 example`
```
0 _##__#_#_####____##____#_##_##_#_###_____##_##___##__#_#
1 ###_######__#___###___############_#____######__###_####
2 #_###____#_##__##_#__##__________###___##____#_##_###__#
3 ###_#___#####_#####_###_________##_#__###___#######_#_##
4 #_###__##___###___###_#________#####_##_#__##_____######
5 ###_#_###__##_#__##_###_______##___######_###____##____#
6 #_#####_#_#####_#####_#______###__##____###_#___###___##
7 ###___#####___###___###_____##_#_###___##_###__##_#__###
```