Exercise: Moore neighborhood
NW
N
NE
E
W
SW
SE
List
S
Now all 8 neighbors
included
List can accomdate
more members
In agent creation add code to define Moore neighborhood
Hint: Consider for-next loop
Previous slide
Back to first slide
View graphic version