def costToMoveDelta(self, deltaXY):
     return self.size()*(1+L.distanceBetween((0,0), deltaXY))*fractional_move_cost 
예제 #2
0
 def costToMoveDelta(self, deltaXY):
     return self.size() * (1 + L.distanceBetween(
         (0, 0), deltaXY)) * fractional_move_cost
 def costOfMoveBetween(self, old_location, new_location):
     return self.size()*(1+L.distanceBetween(old_location, new_location))*fractional_move_cost
예제 #4
0
 def costOfMoveBetween(self, old_location, new_location):
     return self.size() * (1 + L.distanceBetween(
         old_location, new_location)) * fractional_move_cost