lib/codebreaker_vk/game.rb in codebreaker_vk-0.2.0 vs lib/codebreaker_vk/game.rb in codebreaker_vk-0.2.1

- old
+ new

@@ -17,11 +17,11 @@ @tries_count = DIFFICULTIES[@difficulty][:tries] @hints_count = DIFFICULTIES[@difficulty][:hints] @errors = [] - + @hints = [] @matches = '' end def check_guess(input) input = to_array(input) @@ -44,10 +44,10 @@ @hint_indexes.delete index @hints_count -= 1 - hint + @hint<<hint end def win? @matches == Array.new(CODE_LENGTH, EXACT_MATCH_SIGN).join end \ No newline at end of file