Esempio n. 1
0
 def _estimate_action(self, action):
     action = action.replace('act', '').replace(',', '')
     if action == '':
         pos = self.board.me.pos
     else:
         dir = Direction(action)
         pos = self.board.me.pos + dir.get_delta()
     return self._estimate_pos(pos)