January 2026
Beginner
139 pages
3h 54m
English
Roughly speaking, percolation is the simulation of forest fires. You take a checkerboard-like pattern and randomly fill each field with a tree or desert. Then you set fire to all the trees along one side and watch how the fire spreads. If the probability exceeds a certain limit, the fire will spread to the other side. Below that limit, it will go out first.
First, we have to import a few libraries and set the random number seed.
Now we continue with defining the types of fields. We have deserts that cannot burn, trees ...
Read now
Unlock full access