

Click OK, and our new shape appears in the shapes list.Repeat the above process duplicating the original circle, giving a new name to the new shape,and changing the color to create blue and green circle shapes for papers and scissors(respectively).

This will change the colorof the circle to red. We then see this:Give this shape a new name (I suggest rocks-circle or rock), then click on the big gray circle.When it is selected, click on the red tile in the color palette to the left. We do this by selectingthe circle shape, and then pressing the Duplicate button. Wewill use this shape but to make things easier in our code, we will create three special versionsof this shape: one colored red, one colored green, and one colored blue. Select the Tools/Turtle Shapes Editor menu option, and find the circle shape. To make things very simple, let's make the turtle shapes circles, colored red, green, and blue(respectively).
#NETLOGO BREEDS CODE#
InNetLogo, we do this with three breed statements (at the top of the Procedures tab): breed breed breed (In this document, any new code added at each step will be italicized code that was created in aprevious step will not.)NetLogo Tutorials coli strains, or the three types of side-blotched lizard males, let's simply have three generic species: rocks, papers, and scissors. Whenever it changes to a new strategy, it will continue with the new strategy until it is once again defeated, and once again adopts the victor's strategy.Setting Up the ModelRather than make this model specifically about the three E. It will maintain this strategy until it is defeated, at which point it adopts the strategy of the victor. Each turtle will start out with a strategy of rock, paper, or scissors, selected randomly.those located immediately to the North, East, West, or South of it. Each turtle can only play against those turtles directly adjacent to it i.e.The terrain will be completely populated by turtle agents i.e.But for now, the characteristics areas follows: coli, the parallel is very close, and this type ofmodel matches the real-world observations very well.In later exercises, we will add additional features to this model. coli bacteria, as well as the three differenttypes of side-blotched lizard males. As previously discussed, even this simple game has parallels innatural world, including ecosystems of three strains of E. Building a Simple Rock-Paper-Scissors Model in NetLogoIn this activity, we will build a simple NetLogo model in which the turtle agents play a simplifiedform of Rock-Paper-Scissors.
