Class: Patience::Deck
Overview
Patience::Deck creates a play deck object, which contains 52 cards (just like a real world deck!).
deck = Deck.new(cards) # Just imagine, that we've already created those!
deck.cards.size #=> 52
Instance Attribute Summary
Attributes inherited from Pile
Instance Method Summary collapse
-
#initialize ⇒ Deck
constructor
A new instance of Deck.
Methods inherited from Pile
#<<, #draw_on, #hit?, #last_card?, #overlaps?, #pos=, #shuffle_off!