[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

breed bug? (formerly commas & turtle orders)



The synchronization problem I was having, which I thought was due to
improper or insufficient use of commas in my code, now looks like it may be
due to something funny with breeds.  I have simplified my code so that both
breeds are doing the same tasks and the only difference between them is,
well, their breed.

Basically, it appears that whichever breed is created SECOND (i.e. last)
always gets the food.  I start by creating two dolphins, then two sharks.
When I do this and the dolphins and sharks both see food at dx dy, they
both move onto the patch at the next time step, and at the following time
step the shark always shows the increment.  When I reverse the two creation
lines so that sharks are created first, the dolphins always get the food.

I will continue to simplify my code and stop using funny shapes to see if I
can replicate this under the simplest possible conditions.

-------------------------
Dr. Gerald J. Balzano
Dept of Music
Teacher Education Program
Laboratory for Comparative Human Cognition
Cognitive Science Program
UC San Diego
La Jolla, CA 92093
(619) 822-0092
gjbalzano@ucsd.edu