-- | Returns a value between 1 (near) and 0 (away) indicating if the player
-- should run to the ball or not depending on distance.
nearToBall :: PlayerInfo -> [PlayerInfo] -> Ball -> Float
nearToBall p ts b = if isNearestToBall p ts b then 1 else spotRunDistanceValue p (location (ballentity b))
nearToBall :: PlayerInfo -> [PlayerInfo] -> Ball -> Float
nearToBall p ts b = if isNearestToBall p ts b then 1 else spotRunDistanceValue p (location (ballentity b))
nearToBall p ts b = if isNearestToBall p ts b then 1 else spotRunDistanceValue p (location (ballentity b))