コード例 #1
0
ファイル: protocol.py プロジェクト: abhishekreddy1206/ants.py
 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)