Serendip is an independent site partnering with faculty at multiple colleges and universities around the world. Happy exploring!

Reply to comment

ssv's picture

Code from Today's Class

globals[ visited ]

to setup
ca
crt 1
end

to go
ask turtles [ set pcolor yellow
rt random 360
fd 1]
update
tick
end

to update
set visited count patches with [pcolor = yellow]
plotxy ticks (visited / ((2 * max-pxcor + 1) * (2 * max-pycor + 1 )) * 100)
end

Reply

To prevent automated spam submissions leave this field empty.
5 + 15 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.