2014-11-19 HW

posted Nov 19, 2014, 4:42 AM by Samuel Konstantinovich   [ updated Nov 19, 2014, 5:39 AM ]

Goal: 

Play” with Netlogo and gain familiarity. Make a cool picture.


HW: 

Tutorial videos 4,5,6. Same as before: Watch the tutorial,complete the exercises, watch the answers.



Activity 1: 

Right click near a turtle to open up a drop down menu. Click on the turtle number you wish to select and you will see a status panel open up, that lists attributes of the turtle:

xcor

ycor

heading

Who

etc...


Try to change the values in the status panel by clicking on a value and typing a new value.

Can you determine what they mean by changing values?

If you cannot determine what one of the values means, where can you look for an answer?


NOW EVERYONE:


1. In your notebook, list all of the variables who, color etc. (ignore breed for now)

2. Next to each, write a description of what they mean. 

Which one(s) cannot be changed? Why not?


Activity 2: 

Use the turtles to draw an amazing picture/pattern:

1.You should pair up with the person that I tell you to. 

2.Can you make circular shapes?

3.Remember you can make a few turtles draw something, then kill them, and make more turtles.


DO: Experiment with different commands.

DO: Use the set command to change turtles colors to your choosing. 

DO: Use the repeat command to make a pattern 


DO NOT: accidentally clear-all or clear-drawing

DO NOT: just make a mess, your creations should be deliberate, not completely random.

DO NOT: make turtles move a really big number.

DO NOT: make a huge number of turtles. 


TRY: DO or DO NOT, there is no TRY.


Commands everyone must know:

Basic observer commands for turtle creation:

create-turtles

create-ordered-turtles

clear-all

clear-drawing

clear-turtles


Basic turtle commands

forward

back

left

right

pen-down

pen-up

stamp (affects the drawing)


Turtle commands can change a turtle:

set <PROPERTY> <VALUE>     (no, do not type the symbols < and >   )

e.g.

set size 3

set color red

set shape "sheep"


Multiple context command that allows you to loop easily:
repeat n [ commands ]      (yes the square brackets are required)
will repeat the commands n times.

Comments