breed[hunters hunter]
breed[rabbits rabbit]
hunters-own [rab-in-sight]
to setup clear-all create-hunters 20 create-rabbits 100 ask hunters [ set color red setxy random-xcor random-ycor ] ask rabbits [ set color white setxy random-xcor random-ycor ] end
to connect ask hunters [ set rab-in-sight min-one-of rabbits in-radius 5 [distance myself] ] end
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/474a16b9-5656-4b20-93c0-1fae7ad0372f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.