Each object maintains as state information its current position, its age, and a hunger factor. Wolves and Rabbits become older and old to die. . Mature wolves and rabbits give birth to young ones. . Wolves and rabbits are hungry to die if too long starve. . Hungry wolves to in the direction of rabbits and eat a rabbits if it is near enough. .
Hungry rabbits go in the direction of carrots and eat from a carrot if it is near enough. .
Rabbits escape in a direction opposite of wolves or hide in shelters to find protection from wolves. This program use the Abstract Window Toolkit to provide a graphical user interface and provide buttons to stop, resume, or restart the simulation. Go back to Main Page.