Package deck provides api for creating and using a deck of 24 cards.
const Size = 24
Size is the number of cards in a deck.
OrderedDeck is the initial full ordered deck. Points is a map connecting each card with its points.
func AreTheSameSuit ¶
AreTheSameSuit returns true if card1 and card2 are from the same suit.
Deck contains the original deck and the current one (after drawing cards).
DrawCard returns the top card of the deck if it has any.
func (*Deck) DrawNcards ¶
DrawNcards returns the top n cards if n <= the size of the current deck.