Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 407 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 407 Bytes

Forest Fire

Forest Fire cellular automata written in C++ with Allegro5

Forest Fire is defined by four rules which are executed simultaneously:

  1. A burning cell turns into an empty cell
  2. A tree will burn if at least one neighbor is burning
  3. A tree ignites with probability f even if no neighbor is burning
  4. An empty space fills with a tree with probability p.

Forest Fire