
Cellular automata, but instead of cells there are tiles Tile(1, 1).
I took theory and code from this repo: https://github.com/shrx/spectre, and modified it for cellular automata.
- Run
./compile.bat(or execute commands manually from it).
You can changeN_ITERATIONSingenerateTiles.cppfor different amounts of tiles.
Information about tiles will be generated incells.txt. - Open
index.htmlin your browser. - Click
Choose filebutton and selectcells.txt. - Click the button
Init. - Now you can click on tiles, marking them
alive. - Click the button
Start automata.
You can click on tiles while the automata is working.
For a reset, you need to update the page.
For changing automata rules, you need to change start function in index.html.
numAlive(tiles[i]["neighbours"]) means number of alive neighboring tiles, numAlive(tiles[i]["vertNeighbours"])
means number of alive neighboring tiles that have only a common vertex with the given one.