2015-12-10 LabN05

posted Dec 10, 2015, 4:53 AM by Samuel Konstantinovich   [ updated Dec 10, 2015, 7:18 AM ]
Homework: (by Monday)
-Netlogo Video 16
-Complete labN05


Do Now:


1. Log in, turn off monitor.
2. Write a setup function on paper that does the following:
    -reset the entire world
    -scatters 500 turtles randomly around the entire world. 
    (This means they should be evenly distributed not clustered together)
    -all turtles on the left 1/3 of the world turn red
    -all turtles on the middle 1/3 of the world turn green
    -all turtles on the right 1/3 of the world turn blue
    (You may assume the coordinates have the origin in the middle, but not what the world size is)


labN05 Patches:

0. Make 4 monitors that count the number of:
    -white patches
    -black patches
    -red patches
    -blue patches

1. Stripes
Write a function that changes the patches into three vertical stripes of colors red/green/blue each taking 1/3 of the screen. (Like the do now but with patches)

2. Checker
Write a function that changes the world into a black/white checkerboard of patches.

3. RandomFourColors
Write a function that changes all patches to one of four colors randomly:
red, blue, black, white

Comments