lib/mastermind/knuth.rb
# Find the possible guesses for which the highest match count is the minimum match count.
Find the possible guesses for which the highest match count is the minimum match count.
Find the possible guesses for which the highest match count is the minimum match count .
def maximum_scoring_guesses
      min_matches = minimum_match_count
      @possible_guesses.select do |possible|
        highest_match_count(possible) == min_matches
      end
    end
def maximum_scoring_guesses min_matches = minimum_match_count @possible_guesses . select do | possible | highest_match_count ( possible ) == min_matches end end
Find the possible guesses for which the highest match count is the minimum match count.
Find the possible guesses for which the highest match count is the minimum match count .