Пример #1
0
 def wrap(self, loc):
     '''Finds the true on-map coordinates of an unwrapped location.'''
     return antmath.wrap_loc(loc, (self.game['rows'], self.game['cols']))
Пример #2
0
 def wrap(self, loc):
     return am.wrap_loc(loc, self.size)