Re:Show HN: Deck of Cards – A playing card API
by kornish on Monday May 11, 2015 @02:36AM
(#9523065)
Looks like deck_id references a persisted model: https://github.com/crobertsbmw/deckofcards/blob/master/deck/...
The model stores the state of the deck, including things like order and remaining cards and how many "decks" of 52 cards are in play.
But how are you shuffling the cards, and how are you identifying unique shuffled decks?
It looks like the deck_id is 12 characters, numbers or lower-case letters. That gives a range of 36^12 or around 4.7 * 10^18. The total range of a physical deck of shuffled cards is 52! or around 8 * 10^67.
It's possible I have misunderstood what deck_id is for.