Commit f526284a authored by Adam P. Goucher's avatar Adam P. Goucher
Browse files

Expanded explanation in isotropic_metafier.py

parent 11d32a73
#!/usr/bin/python #!/usr/bin/python
'''
Converts a pattern in any non-B0 isotropic cellular automaton into an
equivalent 'metafied' pattern in B3/S23. This inspects the rulestring
in the provided pattern file to determine how to program the metacell:
Usage: python isotropic_metafier.py infile.rle outfile.mc [outfile.rule]
If outfile.rule is specified, this will additionally emit a Golly
ruletable file implementing the 8-state 4-neighbour automaton used by
the metacell to emulate the desired isotropic rule.
The original announcement of the metacell is here:
https://cp4space.wordpress.com/2018/11/12/fully-self-directed-replication/
The code below uses the Python bindings of lifelib. Due to the way Python
constructs sys.path, it will use the lifelib submodule directory within
this slmake repository, even if you have another installation of lifelib
on your machine.
'''
try: try:
from lifelib.genera.isotropic import str2tab from lifelib.genera.isotropic import str2tab
except ImportError: except ImportError:
......
Subproject commit f9cf88fefd0d6baa13b872400ee119a063cf29db Subproject commit 04c04ed0466f81b45117b51aa674eef66dd9689c
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment