Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 509 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 509 Bytes

elementary-ca-in-sed

An attempt to implement the one-dimensional elementary cellular automaton in sed. This particular example shows how to implement the rule-110 ca. Edit the file elementary-ca.sed to try out other rules (you can find rules 30 and 90 in the source code or just write your own).

Usage examples:

echo auto | ./elementary-ca.sed
# Or
echo 000000000001 | ./elementary-ca.sed

TODO:

  • Add decimal-to-binary converter to be able specify a rule number as the input to the script.