After successfully implementing traditional draw poker awhile back, this week I turned my attention to Texas-style hold poker, for which the rules are significantly different:
EDIT: To be clear, I would ideally process both games using the same code block as that is how everything is currently structured. I would also like to have odds calculations included in the code so that the payouts from both games are as accurate as possible, with a control switch or other value that can be set to determine which list of odds applies to the current game.
- No card replacements
- Cards are revealed in sets
- After each set you can increase your wager
- Two card start
- Three card flop
- Single card turn
- And one last card at the river for a total of seven cards
- Minimize code duplication, and
- Process the result accurately and completely without regard for the number of cards being used for the game?
EDIT: To be clear, I would ideally process both games using the same code block as that is how everything is currently structured. I would also like to have odds calculations included in the code so that the payouts from both games are as accurate as possible, with a control switch or other value that can be set to determine which list of odds applies to the current game.