Results 1 to 5 of 5

Thread: [VB6] Scoring Poker Hands

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    [VB6] Scoring Poker Hands

    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
    Attached Files Attached Files
    Last edited by Hack; May 31st, 2006 at 05:51 AM. Reason: Added Programming Language To Thread Title

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [VB6] Scoring Poker Hands

    Moved to Games Programming CodeBank

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: [VB6] Scoring Poker Hands

    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.
    Attached Files Attached Files
    Last edited by leinad31; May 31st, 2006 at 11:33 AM.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [VB6] Scoring Poker Hands

    Quote Originally Posted by leinad31
    Thanks Hack. I didn't know there was a more appropriate subsection.

    I've updated the code...
    No problem.

    In keeping with this CodeBank policy, your attachment has been edited and the executable file that was included has been removed.

    Please place ONLY source code in your attachments. No form of executables (.exe, .dll, .ocx, etc) are permitted, and will be removed.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: [VB6] Scoring Poker Hands

    Sorry Hack, forgot to remove the exe.

    I'll update this to a class when I have spare time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width