Skip to content

Commit

Permalink
Bug fix: folded players were not having their previous bets included …
Browse files Browse the repository at this point in the history
…in the main pot
  • Loading branch information
alexclewontin committed Aug 29, 2020
1 parent c624861 commit fe85e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ func (g *Game) updateRoundInfo() {
finalPot.EligiblePlayerNums = []uint{}

for i, p := range tmpPlayers {
finalPot.Amt += p.TotalBet
if p.In && !p.allIn() {
finalPot.EligiblePlayerNums = append(finalPot.EligiblePlayerNums, uint(i))
finalPot.Amt += p.TotalBet
}
}

Expand Down

0 comments on commit fe85e95

Please sign in to comment.