|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Phase 8 example: Drossel–Schwabl forest-fire automaton. More...
#include <cstddef>#include <cstdint>#include <iostream>#include <random>#include <ca-rng.H>#include <ca-traits.H>#include <tpl_ca_engine.H>#include <tpl_ca_lattice.H>#include <tpl_ca_neighborhood.H>#include <tpl_ca_storage.H>#include <tpl_ca_stochastic_rules.H>Go to the source code of this file.
Functions | |
| int | main () |
Phase 8 example: Drossel–Schwabl forest-fire automaton.
Builds a 32×32 toroidal forest-fire CA seeded with a few burning cells and runs it for 60 steps with a fixed master seed. After each step the example prints an ASCII frame plus a tiny tally (#empty / #trees / #burning). The same (seed, init) pair must always produce the same ASCII trace, regardless of the build mode.
Glyphs: '.' empty 'T' tree '#' burning
Definition in file ca_forest_fire_example.cc.
| int main | ( | void | ) |
Definition at line 103 of file ca_forest_fire_example.cc.
References Aleph::blossom_maximum_cardinality_matching(), cols, Aleph::count(), engine, and rows.