2017-10-20 HW

posted Oct 20, 2017, 6:24 AM by Konstantinovich Samuel   [ updated Oct 21, 2017, 11:52 AM ]
Goal: Random what is it good for? or Pretty Colors... OOOOOOH.
Homework13:
Netlogo Videos 13,14

Complete the lab. Submit the lab on the homework server by Monday morning (before class).

-DO NOW 
Log in

Start lab:

Make a setup button that calls the setup function provided:

to setup
  ca
  crt 100[
    init-left-cow
  ]
  crt 100[
    init-tree
  ]
  crt 100[
    init-right-cow
  ]
  ;show you where the trees should be
  ask patches with [ abs pxcor < 4 and abs pycor < 4] 
    [set pcolor yellow]
end

to go
  ask turtles[
   ;do nothing for now
  ]
end

Write the procedures:
init-left-cow
init-right-cow
init-trees


FOCUS ON LEFT COWS for now.

left cows (modified from yesterday)
 -cow shaped
 -random primary color (5,15,25,...) ; this is new
 -left  quarter of the screen (you did this yesterday)

right cows (modified from yesterday)
 -cow shaped
 -random ANY color (0.0 up to 140 )
 - right side of the screen

trees (same as yesterday)
- tree shaped
- center 7x7 square



Comments