Playing With Fire

Trees are stationary in the world. If a healthy tree is next to at least one burning tree, with some percent chance, that healthy tree will change into a burning tree. If a burning tree is set out for a given set of time, then the burning tree will become burnt. Also, if a firefighter comes in contact with a burning tree, with some percent chance, that burning tree will become saved. Also, the firefighter may die during the process of trying to let out the fire with some percent chance. A counter counts the number of each stage of trees and graphs the population sizes.