lib/codebreaker/codebreaker.rb in codebreaker-engine-0.1.4 vs lib/codebreaker/codebreaker.rb in codebreaker-engine-0.1.5

- old
+ new

@@ -47,10 +47,10 @@ end def hint return unless hint? - res = @hint_cache.each_with_object(@codemaker.code) do |index, object| + res = @hint_cache.each_with_object(@codemaker.code.dup) do |index, object| object.delete_at(index) end index = rand(0..3) @hint_cache << index @hints -= 1