Mercurial > rinkhals
changeset 71:00cf9d7f22dc
Expand comment
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Mon, 31 Aug 2009 22:20:27 +0000 |
parents | d92a2f973cc4 |
children | aa4bd93575d9 |
files | gamelib/animal.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/animal.py Mon Aug 31 22:14:41 2009 +0000 +++ b/gamelib/animal.py Mon Aug 31 22:20:27 2009 +0000 @@ -115,6 +115,9 @@ min_cost = self._cost_path(direct_path, gameboard) min_path = direct_path # is there a point nearby that gives us a cheaper direct path? + # This is delibrately not finding the optimal path, as I don't + # want the foxes to be too intelligent, although the implementation + # isn't well optimised yet poss = [Position(x, y) for x in range(self.pos.x - 2, self.pos.x + 3) for y in range(self.pos.y - 2, self.pos.y + 3)] for start in poss: