This repository contains the code for Incendiary: a simulation of a wild fire.
After downloading and installing python and the necessary libraries, the user have to run the following command to play the game:
- On Windows, Unix-like systems and Mac OS:
python3 main.py
When the code is executed, this pygame window will appear.

You can select the cells you want to ignite before the simulation by clicking on them.
They will appear in Red on the GUI

You can also select the cells you wish not to ignite by right-clicking on them. They Will appear in grey on the GUI.
SPACE → Start the fire.
r → reset the simulation.
UP → Increase the speed of the fire.
DOWN → Decrease the speed of the fire
The config.txt file contains the default settings of the simulations. The settings are the folowing:
Hauteur = 100 (the number of cells in height which is an int value)
Largeur = 100 (the number of cells in width which is an int value)
Vitesse = 0.1 (The speed of the fire which has a float value)
Probabilité = 0.53 (The probability of a cell burning which has a float value)
Those values can be changed provided they are the right type (float or int).
The order of the values must not be changed, otherwise the simulation will work in an unpredictable manner.
