atharvapatil22 / PokerAI

0 stars 0 forks source link

Updating the button index currently does nothing. #45

Closed TiptonG closed 1 month ago

TiptonG commented 1 month ago

Ideally, between rounds of poker, the dealer button should be passed around. My first instinct on how to fix this, is making the buttonPlayerIndex a field of poker as well as round, and then have round's runRound() return the self.players and the self.buttonPlayerIndex, so that poker knows what to do with it. buttonPlayerIndex should also be passed as an argument to the round constructor so that each round knows what to do with it.