|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
External-consumer smoke test: run a Game of Life blinker. More...
#include <cstdlib>#include <iostream>#include <tpl_ca_engine.H>#include <tpl_ca_lattice.H>#include <tpl_ca_neighborhood.H>#include <tpl_ca_rule.H>#include <tpl_ca_storage.H>Go to the source code of this file.
Functions | |
| int | main () |
External-consumer smoke test: run a Game of Life blinker.
This program is intentionally tiny. It exists only to prove that an installed Aleph-w can be consumed through find_package(Aleph) and that the cellular-automata headers compile and link against the installed archive. A period-2 blinker is the simplest oscillator whose evolution is trivial to assert, so it doubles as a correctness check.
Definition in file main.cc.
| int main | ( | void | ) |
Definition at line 56 of file main.cc.
References Aleph::and, Aleph::CA::Lattice< Storage, Boundary >::at(), Aleph::blossom_maximum_cardinality_matching(), engine, Aleph::CA::Synchronous_Engine< Lattice, Rule, Neighborhood, Order >::frame(), Aleph::CA::make_game_of_life_rule(), and seed.