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

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

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

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.

Function Documentation

◆ main()

int main ( void  )