case cards.tally.count when 1 puts "NO HAND" when 2 if cards.tally.has_value? 3 puts "NO HAND" else puts "FULL HOUSE" end when 3 if cards.tally.has_value? 3 puts "THREE CARD" else puts "TWO PAIR" end when 4 puts "ONE PAIR" when 5 puts "NO HAND" end