def _score_pass_target(self, active, player):
    """Computes score of the pass between players.

    Args:
      active: Player doing the pass.
      player: Player receiving the pass.

    Returns:
      Score of the pass.
    """
    opponent = self._closest_opponent_to_object(player)
    dist = self._object_distance(player, opponent)
    trajectory = player - active
    dist_closest_traj = None
    for i in range(10):
      position = active + (i + 1) / 10.0 * trajectory
      opp_traj = self._closest_opponent_to_object(position)
      dist_traj = self._object_distance(position, opp_traj)
      if dist_closest_traj is None or dist_traj < dist_closest_traj:
        dist_closest_traj = dist_traj
    return -dist_closest_traj
Computes score of the pass between players.

    Args:
      active: Player doing the pass.
      player: Player receiving the pass.

    Returns:
      Score of the pass.
    
gfootball/env/players/bot.py