2017-12-01

posted Dec 1, 2017, 6:07 AM by Konstantinovich Samuel
Goal: Recap before new stuff!

Do Now:
On Paper 
1- Write a turtle context command change-color
The turtle should look at how many turtles are nearby excluding itself.
When there are no turtles in a 5 patch radius, set the color to white.
When there are 1-3 inclusive turtles in a 5 patch radius, set the color to red + 3.
When there are 4 or more turtles in a 5 patch radius, set the color to red.

2- Write a turtle context command hunt-food 
This will will be run by a wolf/wolves breed. There is also a rabbit/rabbits breed. 
Wolves have a boolean property  stomach-full?. This is false initially.
When run the wolf runs the hunt-food command, it will look for rabbits in a 5 patch radius. When there are one or more rabbits and the stomach-full? is false, the wolf will "eat" one rabbit, and become full. Full stomached wolves should not even bother looking for rabbits. 


Presentations.

Q/A Period.
Comments