2 votes

Make turtles stop after crossing 5 patches in Netlogo?

Sure, the idea would be to let each bird use a counter to check how many times it changed patch. Everytime a bird moves, it will check if the patch it is on is different from the previous one; if that'...
Matteo's user avatar
  • 2,854
1 vote
Accepted

How can I use Numpy functions instead of For-loops to access and manipulate adjacent array entries?

Main idea is that most pixels are not 3 or 7, and so their changes can be vectorized. Then we do the neighbor changes from 3's and 7's one by one. For competing influences, we keep track of it in ...
Michael Cao's user avatar
  • 2,502

Only top scored, non community-wiki answers of a minimum length are eligible