Chapter 6 Program Assignments

Putting it all together - Greenfoot


Falling Leaves, Due Tuesday 12/12

Modify the wombat world so that a leaf, when acted upon will fall down one square.


Leaf Piles, Due Wednesday 12/13

Modify the wombat world to add a new class - Leaf Pile.  The Leaf Pile class will "collect" leaves.  Whenever a leaf enters a square that contains a leaf pile, the pile removes the leaf from the square and counts it as one that is now in the pile.


Winning Leaf Piles, Due Thursday 12/14

Modify the wombat world so that the leaves choose to move either left or right randomly.  Keep track of what leaf piles gain the most leaves.