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

Phase-6 illustration: Bays' B2/S34 hexagonal Game of Life. More...

#include <cstdio>
#include <ca-traits.H>
#include <tpl_ca_engine.H>
#include <tpl_ca_hex_lattice.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_rule.H>
#include <tpl_ca_storage.H>
Include dependency graph for ca_hex_life_example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Phase-6 illustration: Bays' B2/S34 hexagonal Game of Life.

Carter Bays' rule on a hex lattice (B2/S34) is the canonical "interesting" hex Life: a cell is born with exactly two alive neighbours and survives with three or four. This example seeds a small symmetric pattern, runs it for a few generations on a 16x16 toroidal hex lattice, prints ASCII snapshots in offset-coords and dumps a TikZ render of the final state to stdout for inclusion in a LaTeX document.

Definition in file ca_hex_life_example.cc.

Function Documentation

◆ main()