Forest Fire Model

(Description at the bottom)

Key:
Burned Trees
Fire/s
Healthy Trees
Time steps elapsed:
Frames per second:
Number of rows:
Number of columns:
Cell width (pixels):
Cell height (pixels):
Initial number of fire/s:
Initial number of healthy trees:

Model Description

Initial State

In a rectangular world, there are cells and two types of agents: fire and healthy trees. Initially, and each time the model is reset, the world is created. A certain number of fire and healthy trees are randomly placed in the cells. 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 checks for healthy trees in the 4 nearest-neighboring cells. If it finds one, it turns into fire;
  2. If trees have been fire for 20 time steps, then it turns into a burned tree
  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