comparison gamelib/animal.py @ 508:8fbff3505d1d

Remove debugging print
author Neil Muller <drnlmuller@gmail.com>
date Thu, 26 Nov 2009 22:55:26 +0000
parents d3ceb9e9c48e
children 57f9077fb7fb
comparison
equal deleted inserted replaced
507:d3ceb9e9c48e 508:8fbff3505d1d
468 def border(pos): 468 def border(pos):
469 if self._is_fence(pos) or self._cost_tile(pos) >= COST_MARGIN: 469 if self._is_fence(pos) or self._cost_tile(pos) >= COST_MARGIN:
470 return False 470 return False
471 for tpos in [pos + step for step in NEIGHBOUR_8]: 471 for tpos in [pos + step for step in NEIGHBOUR_8]:
472 if self._is_fence(tpos) or self._cost_tile(tpos) >= COST_MARGIN: 472 if self._is_fence(tpos) or self._cost_tile(tpos) >= COST_MARGIN:
473 print 'border pos', pos, self._cost_tile(pos)
474 return True 473 return True
475 return False 474 return False
476 475
477 def is_gap(pos): 476 def is_gap(pos):
478 # A gap neighbours only fence tiles which has < 2 4-neighbours 477 # A gap neighbours only fence tiles which has < 2 4-neighbours