Hi , i'm a beginner in Netlogo , i don't know if the place is
appropriate to post that ( tell me if it's not ) .
I have to simulate people walking on the street . I made a short code
and they can walk but i don't know how I can make them avoid
themselves .
I hope you can help me just by show me an exemple or tell me how i can
do that .
My present code :
turtles-own [
speed]
to setup
ca
crt Pietons ;;slider for the number of people
[ set speed ((random 3) + 1)
setxy random-xcor random-ycor
ifelse random 2 = 0
[ set heading 90
set color blue ]
[ set heading -90
set color red ]
]
end
to go
move-turtles
end
to move-turtles
ask turtles [fd speed]
end
PS : Sorry for my bad english I hope you understand clearly what's my
problem . Thank you
Regards ,