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

Re: Accessing turtle variables



I do see your difficulty with an observer form of print conflicting with
the need to print from a turtle. One way around this is
a little slow, but will work. 

to print-red-turtles :who
if :who = turtle-total [stop]
if color-of :who = red [print var-of :who]
print-red-turtles :who + 1
end

and run it with
print-red-turtles 0

I think having turtle's being able to print individually would be a good
feature. 

Andrew Begel
MIT Media Lab
Epistemology and Learning