Using 8 bytes to represent a card
Maintain an array for the deck of cards
Shuffling the deck/array
Dealing from the deck to two arrays (players 1 and 2 cards in hand)
Generating permutation for the cards in hand
Determining the best hand through "weight" computations
Last edited by Hack; May 31st, 2006 at 05:51 AM.
Reason: Added Programming Language To Thread Title
Thanks Hack. I didn't know there was a more appropriate subsection.
I've updated the code...
EDIT: and I've updated again. It now works properly for flush, straight flush and royal flush. Seems I forgot to update proc PrepHandArr() when I raised the 2nd dimension of the Hand() array. I corrected logical error in IsFlush() and IsStraight(). I also updated the GetHandName() proc.
Last edited by leinad31; May 31st, 2006 at 11:33 AM.