lib/codebreaker_mats/matcher.rb in codebreaker_mats-0.1.7 vs lib/codebreaker_mats/matcher.rb in codebreaker_mats-0.1.8

- old
+ new

@@ -53,10 +53,10 @@ @bulls = @exact_matches @cows = @all_matches - @exact_matches end def digit_is_not_present_in_the_secret_code(digit) - secret_code_hash[digit].empty? + secret_code_hash[digit] == nil end def add_exact_matches(digit, positions) @exact_matches += (secret_code_hash[digit] & positions).size end