Forest Fire cellular automata written in C++ with Allegro5
Forest Fire is defined by four rules which are executed simultaneously:
- A burning cell turns into an empty cell
- A tree will burn if at least one neighbor is burning
- A tree ignites with probability f even if no neighbor is burning
- An empty space fills with a tree with probability p.