[starlogo-users] Need help
Zara Phang
zphang at epcc.ed.ac.uk
Wed Jul 11 11:33:56 EDT 2007
Hello everyone!
I'm trying to do some cellular automata on StarLogo and was wondering if
someone could help me with something I think should be quite simple but I
haven't managed to do yet!
I've basically got agents lined up on an x axis randomly placed by y, so
maybe like this:
xxx x x x xxx x xxx
and I want to figure out whether each agent has another agent in front of
them. I'm currently using the 'smell' feature under 'Other Agents' with a
radius of 1, which tells me that whether there is an agent either side of
it, so I think I am halfway there! I have tried the 'smell with' with a
radius of 1 and a condition of (xcor of who > xcor) but this doesn't seem
to work.
Does anybody have any ideas what is going wrong and how I can fix this?
Many thanks,
Zara
More information about the starlogo-users
mailing list