lib/chadet.rb
# Method to check how many characters are correctly guessed
Method to check how many characters are correctly guessed
Method to check how many characters are correctly guessed
def checkCC guess
      cc = 0
      guess.each_char do |x|
        if @secret_chars.include? x.to_s
          cc += 1
        end
      end
      return cc
    end
def checkCC guess cc = 0 guess . each_char do | x | if @secret_chars . include? x . to_s cc += 1 end end return cc end
Method to check how many characters are correctly guessed
Method to check how many characters are correctly guessed
guess
<not_specific>