Giter Club home page Giter Club logo

burningforestsimulation's Introduction

Burning Forest Simulation

Description: Burning Forest Simulation allows user to find out how can a fire spread in a forest of chosen size. Software asks a user to type a size and creates a map which is two-dimensional table (size X size). Then asks for a percentage of trees in particular forest, so-called Forestation and its value can be chosen from range [0;1] (if there is an exepction thrown while entering forestation value, please try to use a coma instead of a dot i.e. "0,6" rather than "0.6"). Code conducts a simulation of burning the forest down and at then end prints final look of a map and ratio of burnt trees to initial quantity of them.

In order to run an app, go to pozarlasu\out\artifacts and create a text file. Inside copy this: java -jar pozarlasu.jar pause Then save your text file as "start.bat" and then run a file with ".bat" extension.

From author: This simulation was my first java program that I coded after two weeks of a course at my university. It might not be perfect and maybe it could be written differently but still I have to admit that if I were to be asked how fast does it take my to learn something in terms of coding, I would show this code. The only two programs I had created before I coded this were "Hello World!" and some loops exercises.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.