I require a Visual Basic Program to calculate Texas Holdem Poker Odds.
Specifically, the odds of a hand winning based on the two cards in the players hands and the 5 cards on the board. I need this in Visual Basic as I will need the code for future modifications. I have the 169 starting hands programmed in with percentage to win values based on the amount of players in the hand (2 - 10) so we can build from there.
Step by Step:
We already have the players 2 card values which will be represented for example as 2h for the Two of Hearts, or Td for the Ten of Diamonds, or Qc for the Queen of Clubs etc..
So, I will manually enter the first 3 community cards (the flop) via 52 buttons (full deck) which log the card value and the card suit. (Values are 1 - 14 which represent 2 to Ace, and 1 - 4 which represent Spades, Hearts, Diamonds, Clubs)
Calculation: What is the winning percentage of my hand value combined with the 3 community cards factoring in the 2 remaining cards to come.
Then I manually enter the 4th community card (the turn) and the calculation begins again.
Calculation: What is the winning percentage of my hand value combined with the 4 community cards factoring in the 1 remaining card to come.
Once the fifth card has been manually entered the final calculation begins.
Calculation: Of all the hands in poker, what is the percentage value of my hand being the strongest.
NB: The code must have a neat layout and comments are optional.
I use Visual Basic 2005 Express but have some knowledge of Visual Basic 6.
PM if you need any further details
((EDIT)) Following 5 bids I think its only fair to say that what I need can be bought commercially for $100. Because of this, I was and still am only willing to pay a maximum of $50 for the above project.
My apologies go out to everyone who has bid on this project so far. I should have specified in the main project description and I'm sorry for the time you have spent on me.
The project is still open to the right programmer under the revised terms and will be extended accordingly.