Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Logo > Help for a begi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1576 of 1588
Post > Topic >>

Help for a beginner in Netlogo

by Shenmicke <Mickael.Singhathip@[EMAIL PROTECTED] > Mar 31, 2008 at 09:34 AM

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 ,




 3 Posts in Topic:
Help for a beginner in Netlogo
Shenmicke <Mickael.Sin  2008-03-31 09:34:26 
Re: Help for a beginner in Netlogo
Andreas Micheler <Andr  2008-04-03 00:20:46 
Re: Help for a beginner in Netlogo
Shenmicke <Mickael.Sin  2008-04-03 06:03:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:10:48 CDT 2008.