|
-
Nov 24th, 2005, 02:10 AM
#1
Thread Starter
New Member
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
-
Nov 24th, 2005, 12:40 PM
#2
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
-
Dec 1st, 2005, 12:31 AM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|