An open API service indexing awesome lists of open source software.

https://github.com/picojr/cell

cellular automaton
https://github.com/picojr/cell

automata cellular python

Last synced: 29 days ago
JSON representation

cellular automaton

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 ###___#####___###___###_____##_#_###___##_###__##_#__###
```