This program creates a 2D array to represent the fire display, and starts by filling the bottom row with fire particles. It then simulates the fire spreading upwards by randomly spreading particles from each cell to neighboring cells.
It is recommended to run the program on Linux due to the very slow operation of the Windows console.