def _best_pass_target(self, active):
    """Computes best pass a given player can do.

    Args:
      active: Player doing the pass.

    Returns:
      Best target player receiving the pass.
    """
    best_score = None
    best_target = None
    for player in self._observation['left_team']:
      if self._object_distance(player, active) > 0.3:
        continue
      score = self._score_pass_target(active, player)
      if best_score is None or score > best_score:
        best_score = score
        best_target = player
    return best_target
Computes best pass a given player can do.

    Args:
      active: Player doing the pass.

    Returns:
      Best target player receiving the pass.
    
gfootball/env/players/bot.py