What Would Change

Instead of immediately updating pots when an action is made, the bets will be placed into a staged pot. This staged pot will accumulate throughout the bettingRound and will be added to the currentPot after the bettingRound ends, which is nicknamed “committing bets” (similar to git).


How This Would Be Beneficial

This would mean that if a player is forced to go PlayerStatus.ALL_IN then the currentPot would not need to be deducted from before creating a side Pot. Instead, it would just mean that when bets are committed, the staged pot would be distributed to the mainPot and relevant sidePots.