There are 100 green patches and 10 turtles. Whenever a turtle comes to a green patch, it becomes red. So after a long time, all the green patches become red AT DIFFERENT TICK TIMES. I want to get those 100 different tick times to an excel sheet using BehaviourSpace. Also i want to run this 100 times. i.e I want 100 sets of 100 different tick times.
I have made a code such that when a turtle comes to the green patch, the patch becomes red and I have written "show ticks" under it. So when a green patch becomes red, the tick time is shown on command center at the bottom of the screen. Tick times Example: 34,56,78,98,99,...,1234. There are 100 different times.
breed [InfMosquitoes InfMosquito]
to setup
clear-all
set-default-shape InfMosquitoes "butterfly"
create-InfMosquitoes num-infected-mosquitoes-red
[
set color red
]
ask turtles [
set size 1
setxy random-xcor random-ycor
]
ask turtles[
ifelse coin-flip?
[ifelse coin-flip? [set heading 0][set heading 90]]
[ifelse coin-flip? [set heading 180][set heading 270]]
]
ask n-of num-humans patches [set pcolor green]
show num-infected-mosquitoes-red
reset-ticks
end
to go
ask turtles
[
right random 360
forward 1
ask InfMosquitoes[
if pcolor = green
[
set pcolor red
show ticks
]
]
]
tick
end
to-report coin-flip?
report random 2 = 0
end
I want to know what should I write in BehaviourSpace table. I know Repititions:100. I want to know what should I write on other command boxes.