class Cribbage::CLI

Public Instance Methods

count(*cards) click to toggle source
# File lib/cribbage/cli.rb, line 6
def count(*cards)

  if cards.size != 5
    Console.error "You must input 5 cards"
    exit
  end

  hand = Cribbage::Hand.new(cards)
  hand.print_score
end