Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ca_triangular_example.cc File Reference

Phase-6 illustration: a triangular lattice CA with up/down parity-aware neighbours. More...

#include <cstdio>
#include <tpl_ca_engine.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_rule.H>
#include <tpl_ca_storage.H>
#include <tpl_ca_triangular_lattice.H>
Include dependency graph for ca_triangular_example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Phase-6 illustration: a triangular lattice CA with up/down parity-aware neighbours.

Drives a small (8x8) triangular lattice with a "spread once" totalistic rule: a cell becomes alive if it has at least one alive edge-neighbour, and stays alive thereafter. The example prints ASCII snapshots and dumps a TikZ render of the final frame.

Definition in file ca_triangular_example.cc.

Function Documentation

◆ main()