Agent Coloring With NetLogo -


I am trying to model bulletin colors on mobile bulletin boards with NetLogo. I am able to change my color while changing my colors but the color change is random and sometimes the bulletin colors are the same, touching my circle or close together, I want to have the bulletin near The given color has a unique color. Raduis.Here is a fraction of my code. Can anyone help me?

  Ask the bulletin for color-bulletin [Ask another bulletin -Radiose2 [Ask a bulletin [Set color color] One bulletin [Set color white] Ask a bulletin [color Yellow color] Set a bulletin [color blue]    

One way to do this :

  breed [bulletin bulletin] CA-Bulletin 1000 [saxsi random -xcor random-ycor] color-bulletins to create setup The bulletin asks [let's use-color [color] provide the available three-dimensional bulletin-available color filter [no member? ? [Color of a color]] [color of a color]] end   

assumes that you only want to use it and they can be used already, this situation You still get a "color confrontation" but can not do anything about it, even if the spatial distribution of your agents is quite dense, it should not be so.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -