Due: Tuesday the 28th or Thursday the 30th...
EVEN versus ODD turtles. WHO numbers of turtles are 0, 1, 2, 3, 4, 5, 6, 7, 8, ..., 14, and 15 for 16 turtles created with cro 16. remainder who 2 is either = 0 EVEN turtle or else is = 1 ODD turtle ifelse (remainder who 2 = 0) [ what I want the EVEN turtles to do... remainder was = 0 ] [ what we want the ODD turtles to do... remainder was = 1 ] ;; Here is an example similar but simpler than the one above ;; with the airplanes and fish... TO Stagger ca ;; ca is short for the clear-all, an Observer Command ;; ca clears out EVERYTHING ;; doing clear-turtles, clear-patches, clear-drawing. ;; What are PATCHES? Don't worry! cro howManyTurtles ;; howManyTurtles is the name of the SLIDER ask turtles [ ifelse (remainder who 2 = 0) [ set shape "airplane" fd 12 changeColorEven ] [ set shape "fish" fd 10 changeColorOdd ] ] END