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

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>
Include dependency graph for ca_export_example.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

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.

Function Documentation

◆ main()