lib/chadet.rb
# check if guess has redundant characters
check if guess has redundant characters
check if guess has redundant characters
def is_redundant?
      redundant = false
      a = @guess.split("").to_set.length
      b = @guess.length
      redundant = true if a < b
      return redundant
    end
def is_redundant? redundant = false a = @guess . split ( "" ) . to_set . length b = @guess . length redundant = true if a < b return redundant end
check if guess has redundant characters
check if guess has redundant characters