|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Live X11 viewer example for Conway's Game of Life. More...
#include <cstdlib>#include <iostream>#include <limits>#include <utility>#include <vector>#include <ca-engine-utils.H>#include <ca-x11-viewer.H>#include <tpl_ca_lattice.H>#include <tpl_ca_storage.H>Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Live X11 viewer example for Conway's Game of Life.
Usage:
ca_live_x11_viewer_example [steps]
The viewer is a no-op when DISPLAY is not set, so the example remains safe to compile and run in headless CI.
Definition in file ca_live_x11_viewer_example.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 66 of file ca_live_x11_viewer_example.cc.
References Aleph::CA::X11_Frame_Sink< Mapper >::accept(), Aleph::blossom_maximum_cardinality_matching(), Aleph::CA::X11_Viewer_Options::cell_size, engine, Aleph::CA::make_gol_engine(), and steps.