I know that this is not what μSoft had in mind when they thought up Access, but...
I'm building a "Texas Hold'Em" game in Access.
Got most things to work OK, but am stuck on the betting rotation.
You have to pass the bet around, so my main "Play" form has fields "Bet" and "Pot" which are null until someone passes the bet to you. (The OnTimer event picks this up)
Here's my current approach:
Have subform on main form, set to next player's HandID, and when I see or raise the bet, it updates the record in the subform, and hence the next player's current record in their main form.
Where I start to lose it is if someone raises, the bet rotation needs to continue until everyone's paid up.
Can anyone see any better way of doing this?
Thanks,
Sarge.
p.s. Also thinking of logic in Play form so that if player has folded, the bet will be passed automatically to next player.
I'm building a "Texas Hold'Em" game in Access.
Got most things to work OK, but am stuck on the betting rotation.
You have to pass the bet around, so my main "Play" form has fields "Bet" and "Pot" which are null until someone passes the bet to you. (The OnTimer event picks this up)
Here's my current approach:
Have subform on main form, set to next player's HandID, and when I see or raise the bet, it updates the record in the subform, and hence the next player's current record in their main form.
Where I start to lose it is if someone raises, the bet rotation needs to continue until everyone's paid up.
Can anyone see any better way of doing this?
Thanks,
Sarge.
p.s. Also thinking of logic in Play form so that if player has folded, the bet will be passed automatically to next player.