2017-11-08 LAB

posted Nov 8, 2017, 6:05 AM by Konstantinovich Samuel   [ updated Nov 8, 2017, 10:33 AM ]
lab Patches:

Now: Make 4 monitors that count the number of:
    -white patches
    -black patches
    -red patches
    -green patches

The reporters will change based on which button is pressed:

Change the world to have max x and y of 49.
Reduce your patch size to 4.

Make 5 buttons (and 4 corresponding procedures + any helper procedures)
1. RandomFourColors
Write a function that causes each patch to select a color randomly. They can only choose between: red, green , black, white

2. Stripes
-Write a function that changes the patches into three vertical stripes of colors red/white/green each taking 1/3 of the screen. (Calculate this value, so you can change your screen size)

3. Horizontal Stripes
-Write a function that changes the patches into single patch wide stripes of white/black/red/green. They must occur in that sequence:  

but it doesn't matter where the sequence starts at the top of the screen.

4. Checkers
-Write a function that changes the world into a black/white checkerboard of patches. Each patch is 1 checker space.

5 BigChecker - Challenge problem - try it in class but you don't have to finish it.
-Make a different version of checkers: Each checker space is a 2x2 set of patches!