Skip to content

oopsdan/ForestFireSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Forest Fire Simulation (JavaFX BlueJ Project)

This project simulates the spread of a forest fire using JavaFX and is designed for use with the BlueJ IDE.

Table of Contents

Introduction

The Forest Fire Simulation project is a JavaFX project created for educational purposes within the BlueJ IDE. It is designed to simulate the propagation of a forest fire in a grid-based environment.

Features

  • Dynamic grid visualization of the forest and burnt areas.
  • Adjustable density of trees in the forest.
  • Start and stop simulation controls.
  • Real-time display of the percentage of burnt area.

Getting Started

To run the simulation on your local machine using BlueJ, follow these steps:

  1. Clone the repository:

    git clone https://github.com/oopsdan/ForestFireSimulation.git
    
  2. Open the project in BlueJ.

  3. Run the MainAplikacia.java file.

Usage

Adjust the density of trees using the slider. Click the "Nastaviť" button to apply the changes to the grid. Click the "Spustiť" button to start or stop the fire spread simulation.

Contributing

This program was created as a learning exercise and is not intended for production use. However, if you would like to contribute to the project, feel free to submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.