Courses/CS 461/Winter 2006/Darren Iwaki/week 1

From CSWiki

Jump to: navigation, search

[edit] Comments

very nice program. I had some problems trying to get straight that some commands can only be called by observer, turtle, or patches. I wanted to give the agents some sort of individual directed path instead of random movement, but couldn't figure it out. I noticed that patches had 'patch-here', 'patch-ahead', etc., but then had problems having it interact with turtles.


[edit] Assignment

I originally tried to do the following problem

Agents seeking Food

a. the food is randomly placed on the map and randomly reappears
b. the agent are randomly placed on the map
c. the agents try to find all the food, but can only see a certain radius around them
d. for every step the agent loses energy and (if energy < 0) agent dies
e. if the agent is low of energy it stops and waits for the hotspot to appear near it

Problems: 1. Couldn't get that agents to search the surrounding space without it being a patch (ie. patch-here) 2. With the patch convention didn't know how to delete it from the screen. I set the pcolor to a new one, but food still seemed to be present even after eaten.

[edit] Change of Plans

Decided to just make food banks placed randomly on the map. The agents move randomly around until they hit the next food banks. If the agents move too much they die. Agents survival is dependent on 1. How fast the agent depletes food 2. Number of food banks 3. Size of the search space

hotspot.zip Image:hotspotview.jpg

Personal tools