Help for a beginner in Netlogo

This is a discussion on Help for a beginner in Netlogo within the logo forums in Programming Languages category; 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 ...

Go Back   Application Development Forum > Programming Languages > logo

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-31-2008, 12:34 PM
Shenmicke
Guest
 
Default Help for a beginner in Netlogo

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 ,
Reply With Quote
  #2  
Old 04-02-2008, 06:20 PM
Andreas Micheler
Guest
 
Default Re: Help for a beginner in Netlogo

Hi Mickael,

since there are still no answers, I try.
Unfortunately I don't know NetLogo well enough,
so I cannot give you an explanation.
But did you try to contact the authors?
<http://ccl.northwestern.edu/netlogo/contact.shtml>

Greetings,
Andreas
Reply With Quote
  #3  
Old 04-03-2008, 09:03 AM
Shenmicke
Guest
 
Default Re: Help for a beginner in Netlogo

Thank you I'll try to mail this person , I hope that i'm not going to
disturb him .
Regards .

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:16 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.