Simulating Life

Just another UMass Boston Blogs site

Code Review

| 1 Comment

Instead of creating multiple agents I created one agent, Mosquito, and gave it a trait, Age. This allows me to manipulate the shape, size and color of the Mosquito agent in different stages of its life cycle according to its Age. The Human Cleaner agents are cleaning puddles and the eggs laid on the puddle are also being deleted. Yay!

Thank you Sally, Jumanna, Vu, Andy, John and Professor White for all your help!

Have a wonderful break everyone!

Tabby

One Comment

  1. nice
    when you count the water puddles, you should also check their age; if they’re 14 or older, they shouldn’t delete – as written, adult mosquitoes that fly too far from a puddle will die!

Leave a Reply

Required fields are marked *.


Skip to toolbar