Results 1 to 4 of 4

Thread: texas holdem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    366

    texas holdem

    Hey, here is a program that deals 5 community cards and 2 private cards to two players then says which player wins. I am trying to change it so that there are text boxes that i can type the value in of the cards, as say s3, h7, dk, ca etc. It converts this string to whatever type of value it uses for the cards and says which hand is better.

    But i cant do it.

    I have tried and almost died but nothing.

    Please can someone try this so that i can see where i was going wrong.

    Also, if you get a chance, can you change the weight ( you'll see what i mean) to a percentage, and in its own trext box. Thanks

    Alex

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    366

    Re: texas holdem

    Sorry, fogot to upload...
    Attached Files Attached Files

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    366

    Re: texas holdem

    This kind of thing
    Attached Images Attached Images  

  4. #4
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    Re: texas holdem

    Make a UDT containing the code of a card and it's value.
    Make an array of this type with room for all cards.
    Fill that array the right data.

    Enter a code.
    Look for the card with that code in the array.
    Retrieve the value of that card.

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