Text to Cell is a piece of Software developed by Tobias Maier. It takes a high-level description of a cellular automaton as input and outputs different formats. One of them is made for interoperability with zasim. It can be loaded and simulated with a ZacSimulator and its data can be displayed with a ZacConsoleDisplay.
This module implements whatever’s necessary to work with .zac files like text_to_cell outputs.
Turn a name of a subcell into x/y coords
Create an ascii art template suitable for string interpolation.
If you want correct outer borders, you need to wrap box positions for y=-1, y=h+1, x=-1 and x=w+1.
a list of strings usable for drawing an ascii box art.
This makes template chunks for either four corners, four sides and a center for a lattice of box-templates or - if twodim is False - for the left and right end and the body of a line of box-templates.
Adds C and python code to get the neighbouring values and stores them in local variables.