Assignment 14 - Spreading Fire

Example Output

Source

This is a nifty assignment from 2007 proposed by Angela B. Shiflet. Source

Learning Outcomes

  1. Loops
  2. Recursion
  3. Conditions
  4. 2D Arrays

Goals

The purpose of this assignment is to learn to

Description

Tasks

Empty spaces

Empty spaces are represented with a yellow color and will not catch fire.

Trees

Trees are represented with green and can catch fire if there is a fire in an adjacent cell. However, the condition for catching fire is not only touching fire. There should also be a probability test that determines if it will ignite.

Fire

After a certain amount of time, a fire should go out and become an empty cell.

Extentions

Help

For Java

NonBlockingGame documentation

For C++

NonBlockingGame documentation

For Python

NonBlockingGame documentation