Forest Fire Model

(Description at the bottom)

Key:
Fire
Tree
BurntTree
Time steps elapsed:
Frames per second:
Number of rows:
Number of columns:
Cell width (pixels):
Cell height (pixels):
Initial number of fire:
Initial number of trees:

Model Description

Initial State

In a rectangular world, there are cells and three types of agents: Fire, tree, and burnt tree. Initially, and each time the model is reset, the world is created. A fire starts in random cell. The fire spreads and feeds off the trees it attaches to and spread further. At no point during the simulation can two agents occupy the same cell. The state of the model is initially drawn on the screen.

During Each Time Step

During each time step of the simulation,

  1. each fire looks for alive tree in the 4 nearest-neighboring cells. If it finds one, it spreads it;
  2. all agents move randomly to one of their empty, nearest-neighboring cells;
  3. the current state of the model is drawn on the screen.

Final State

The simulation runs indefinitely, until the stop button is clicked.

© Shodor 2017