Skip to content

dan4am/Incendie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description.

This repository contains the code for Incendiary: a simulation of a wild fire.

Structure:

1. Getting started

a. Prerequesites.

b. Run the code.

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 

c. The GUI.

When the code is executed, this pygame window will appear. gui

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

You can also select the cells you wish not to ignite by right-clicking on them. They Will appear in grey on the GUI.

Ashes

d. Commands.

SPACE → Start the fire.

r → reset the simulation.

UP → Increase the speed of the fire.

DOWN → Decrease the speed of the fire

e. Config file.

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages