Forest Fire Agent Model
(Description at the bottom)
Model Description
Initial State
In a rectangular world, there are cells and two types of agents:
firefighters and fire. Initially, and each time the model is reset, the
world is created by filling each cell with the maximum amount of tree.
A certain number of firefighters and fire 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.
Description
During each time step of the simulation,
- Each cell regrows a tree in the cell.
- Each firefighter, moves around randomly in the forest and if it's next to a burning tree
then it puts out the fire, and the tree can regrow.
- Each surviving fire, has a certain percent chance to kill trees from
the cell it occupies;
- Burning trees become burnt trees after a certain amount of timesteps.
- Burnt trees disappear after a certain number of timesteps.
- All agents move randomly to one of their empty, nearest-neighboring
cells;
- 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