So, I am considering my deck and the shuffling for the game "Thirty-One"
Currently, I have an array[4][13]. But now I am rethinking that, I am debating if I want to do something like:
boxedCards[4][13]
shuffledCards[4][13]
I would use my random to pull cards from the boxedCards and place them into the shuffledCards array. I could deal directly then one after the other, I guess I could even shuffle again if I wanted to.
Just wondering what your thoughts on this approach is...
constint NSUITS = 4 ;
constint NCARDS_PER_SUIT = 13 ;
// ordered: suit-wise, face-value-wise within each suit
Cards boxedCards[NSUITS][NCARDS_PER_SUIT] ;
// unordered: just a random sequence of the cards in the deck
Cards shuffledCards[NSUITS*NCARDS_PER_SUIT] ;