lib/chadet.rb
# Check if wrong character is input
Check if wrong character is input
Check if wrong character is input
def wrong_input?
      wrong_char = false
      error_num = 0
      @guess.each_char do |char|
        error_num += 1 unless chars_set.include? char
      end
      wrong_char = true if error_num > 0
      return wrong_char
    end
def wrong_input? wrong_char = false error_num = 0 @guess . each_char do | char | error_num += 1 unless chars_set . include? char end wrong_char = true if error_num > 0 return wrong_char end
Check if wrong character is input
Check if wrong character is input