Lecture:: 01-10-13

posted Jan 9, 2013, 1:58 PM by Samuel Konstantinovich   [ updated Jan 9, 2013, 1:58 PM ]
PRACTICE FINALS are posted on the Introduction to Computer Science Section of the website. (On the left menu bar)

Grade Related Things:
There will be no quiz on the project. Instead the project will just be weighted as a test + quiz.
The added documentation I added to the project will justify this modification. 

Other commands:
other: a command which removes 'myself' from an agentset.
example:
zombie can ask the closest ZOMBIE to die. But if you ask the closest 'same breed as yourself' to die, that is probably going to be you! When you minimize distance to yourself, you are the closest unless you are talking about another breed.

other agentset   will return the agentset with the agent that calls the command removed from the agent set. 

examples...
a player can kill their strongest other opponent (if he was the strongest he does not want to kill himself):
ask max-one-of other players [score] [die]  

a zombie can ask the closest OTHER zombie to do '...' :
ask min-one-of other zombies [distance myself] [ ... ]

Comments