Respond to Patch Color

If you want your agents to respond to the patches in spaceland, you can have them check either the patch color or the patch height.

check patches aheadcheck patches ahead


You need to include logic in the movement procedures so that the agent checks the patches ahead to see if it is a certain color. If it is that color (indicated by the equals sign), then the agent with do something. If it isn't that color, it will simply move forward one.

pc-ahead = patch color ahead
ph-ahead = patch height ahead

Submitted by paige on 28. December 2007 - 14:40