Skip to content

evankozliner/elementary-CAs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple elementary CA tool

  • Prints out elementary cellular automata using arguments
  • Only python3 dependency
  • Very slow. For educational purposes.

Usage

$ python3 Main.py -h
usage: Main.py [-h] [-i ITERATIONS] [-r RULE_NUMBER] [-s STATE]

Build elementary cellular automata.

optional arguments:
  -h, --help            show this help message and exit
  -i ITERATIONS, --evolutions ITERATIONS
                        The number of evolutions for the CA.
  -r RULE_NUMBER, --rule_number RULE_NUMBER
                        The rule number for the cellular automata.
  -s STATE, --state STATE
                        The initial conditions for the first row. 0: Middle is
                        *. Other cells are -. (default) 1: Random initial row
                        2:Far right is *. (*). Other cells are -.

Example

python3 Main.py -e 32 -r 110 -s 2
---------------------------------------------------------------*
--------------------------------------------------------------**
-------------------------------------------------------------***
------------------------------------------------------------**-*
-----------------------------------------------------------*****
----------------------------------------------------------**---*
---------------------------------------------------------***--**
--------------------------------------------------------**-*-***
-------------------------------------------------------*******-*
------------------------------------------------------**-----***
-----------------------------------------------------***----**-*
----------------------------------------------------**-*---*****
---------------------------------------------------*****--**---*
--------------------------------------------------**---*-***--**
-------------------------------------------------***--****-*-***
------------------------------------------------**-*-**--*****-*
-----------------------------------------------********-**---***
----------------------------------------------**------****--**-*
---------------------------------------------***-----**--*-*****
--------------------------------------------**-*----***-****---*
-------------------------------------------*****---**-***--*--**
------------------------------------------**---*--*****-*-**-***
-----------------------------------------***--**-**---********-*
----------------------------------------**-*-******--**------***
---------------------------------------*******----*-***-----**-*
--------------------------------------**-----*---****-*----*****
-------------------------------------***----**--**--***---**---*
------------------------------------**-*---***-***-**-*--***--**
-----------------------------------*****--**-***-******-**-*-***
----------------------------------**---*-*****-***----********-*
---------------------------------***--****---***-*---**------***
--------------------------------**-*-**--*--**-***--***-----**-*

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages