Results 1 to 3 of 3

Thread: vbpoker expiriment

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    4

    Question vbpoker expiriment


    Hello, I'm a very immature vb.net developer and for fun I've decided to try and come up with a simple poker game. The problem I've run into is I have computer players who are going to place bets based on odds. I got the odds from some random poker site and there are ALOT (not surprising considering all the combinations of cards). So what I need help with is, right now the way i get the odds is a very long and ugly if then statement. It doesn't work. I have no experience with databases but one question would be is this a suitable situation for a database? and if so I need help creating one and reading from it. Any help is appreciated. Thanks

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: vbpoker expiriment

    Rather than using odds, a better way might be to assign a value to a given hand. You could then multiply this value by a set factor (plus or minus a random amount) to come up with your bet. This might be alot easier and make a good bit of sense. For example, You assign each card a decimal value, and if you have no poker hand take the highest value as his betting factor. Then, test for various poker hands. That should be alot easier than testing probability for every card. If you hit a certain poker hand, increase your hand value factor by some set amount.

    Then, once you have a final 'value' for the hand, multiply it by a factor relating to the amount of money held, or the minimum bet, and randomize it a little bit.

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    4

    Re: vbpoker expiriment

    Thanks I'll give it a shot.

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