Forest Fire Agent Model

(Description at the bottom)

Key:
Burning
Burnt
Healthy
Time steps elapsed:
Frames per second:
Number of rows:
Number of columns:
Cell width (pixels):
Cell height (pixels):
Initial number of burning trees:
Initial number of healthy trees:

Model Description

Initial State

In a rectangular world, there are cells and three types of agents: healthy trees, burning trees, and burnt trees. Initially, and each time the model is reset, the world is created. The world is filled with healthy trees at the start of each world. 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 burning tree looks for healthy trees in the 4 nearest-neighboring cells. If it finds one, there's a percent chance that it sets the healthy tree on fire;
  2. after a certain amount of time steps, the burning trees turn into burnt trees and can no longer spread fire.
  3. the current state of the model is drawn on the screen.

Final State

The simulation runs until the stop button is clicked or until all the trees have stopped burning.