项目作者: PicoJr

项目描述 :
cellular automaton
高级语言: Python
项目地址: git://github.com/PicoJr/cell.git
创建时间: 2017-09-26T19:02:10Z
项目社区:https://github.com/PicoJr/cell

开源协议:GNU General Public License v3.0

下载


Elementary Cellular Automaton

TL;DR: display elementary cellular automaton.

Usage

See python3 main -h

Example

Rule 110 produces triangle patterns.

python3 main.py 110 8 example

  1. 0 _##__#_#_####____##____#_##_##_#_###_____##_##___##__#_#
  2. 1 ###_######__#___###___############_#____######__###_####
  3. 2 #_###____#_##__##_#__##__________###___##____#_##_###__#
  4. 3 ###_#___#####_#####_###_________##_#__###___#######_#_##
  5. 4 #_###__##___###___###_#________#####_##_#__##_____######
  6. 5 ###_#_###__##_#__##_###_______##___######_###____##____#
  7. 6 #_#####_#_#####_#####_#______###__##____###_#___###___##
  8. 7 ###___#####___###___###_____##_#_###___##_###__##_#__###