|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Practical Phase-11 export pipeline for Conway's Game of Life. More...
#include <cerrno>#include <cstdlib>#include <filesystem>#include <fstream>#include <iostream>#include <limits>#include <string>#include <utility>#include <vector>#include <ca-engine-utils.H>#include <ca-frame-stream.H>#include <ca-io.H>#include <ca-tikz.H>#include <ca-traits.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) |
Practical Phase-11 export pipeline for Conway's Game of Life.
Usage:
ca_export_example [steps] [output-dir] [pattern]
Patterns: glider (default), blinker, r-pentomino, gosper.
The example writes:
frames/frame_XXXX.ppm: one binary PPM frame per step.final.rle: compact Conway RLE of the final frame.final.csv: numeric matrix snapshot.final.json: JSON matrix snapshot.final.tex: TikZ picture of the final frame.frames/manifest.csv: frame sequence manifest. Definition in file ca_export_example.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 159 of file ca_export_example.cc.
References Aleph::CA::Directory_Frame_Sink::accept(), Aleph::and, Aleph::blossom_maximum_cardinality_matching(), cols, Aleph::CA::Frame_Stream_Options::directory, engine, Aleph::CA::Directory_Frame_Sink::flush(), Aleph::CA::make_gol_engine(), Aleph::CA::Directory_Frame_Sink::montage_command_hint(), rows, Aleph::Array< T >::size(), steps, and Aleph::CA::Directory_Frame_Sink::written_frames().