Courses/CS 461/Winter 2006/Kwan Shing Yuen/Homework 3

From CSWiki

Jump to: navigation, search

Homework 3

[edit] Description

This model describe cats chase arround the mice, and those mice are looking for some cheese. After a cat caught a mouse, the mouse may die or remain 1/4 life. It depends on the life of the mouse. Obviously, if the mouse eat more cheese, the life of the mouse is also increased. The life of mice is depending on how many cheese they eat and how much energy for each cheese.


http://geocities.com/shingyk@sbcglobal.net/images/cat.jpg

[edit] Source Code

let's play arround this model

Here (updated)

Personal tools