Poker game simulator (texas holdem)
19 views (last 30 days)
Show older comments
i am trying to simulate a poker game to become more familiar with matlab as i am fairly new. So far i have written code to generate the deck, and calculate the best hand a player can make out of the 2 hole cards and the 5 community cards. I now want to simulate the actual game:
- players post big blind/small blind/ante
- round of betting preflop
- round of betting on the flop, turn, and river
- players reveal thier cards and the best hand wins (i can use my hand rankings to do this)
i am unsure as to the methodology i could use to begin this, how do i tell matlab that a player can bet, check, call, or fold when the action is on the player? Any help greatly appreciated.
0 Comments
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!