broology / poker-moons

Free online poker with friends without the hassle.
4 stars 3 forks source link

fix(round-manager): don't reset statuses to waiting until after winner determiner has run #258

Closed mlevi15 closed 1 year ago

mlevi15 commented 1 year ago

Proposed Changes

This is the cause of the majority of the winner determiner issues. We recently updated the endRound method to reset all of the player statues to waiting at the end of a round. However, we were resetting the statuses before calling the winner determiner, so the determiner was unable to filter out the players with a status of folded, resulting in a bunch of weird cases.

Linked Issue

resolves #244 resolves #245

Types of changes