Skip to content

Commit

Permalink
Add missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
mattruggio committed Jun 24, 2023
1 parent bc24aa8 commit f9edeec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/basketball/draft/front_office.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def pick(assessment)

private

def top_players(assessment)
scout.top_for(players: assessment.undrafted_players)
end

def adaptive_search(assessment)
drafted_positions = assessment.drafted_players.map(&:position)

Expand All @@ -69,7 +73,7 @@ def balanced_search(assessment)
break if players.any?
end

players = players.any? ? players : scout.top_for
players
end

def all_random_positions
Expand Down

0 comments on commit f9edeec

Please sign in to comment.