commit 84d6c1e195d3257f63d80505805908d0a23aa905 parent d205f0283bcbdfb49beafe5636899b0ea7699f29 Author: n0tr1v <n0tr1v@protonmail.com> Date: Fri, 8 Dec 2023 22:15:32 -0500 comment Diffstat:
| M | pkg/web/handlers/poker/poker.go | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -896,6 +896,8 @@ func processPot(winners []GameResult, mainPot int) (res []PlayerGain) { } } + // If any remaining "odd chip(s)" distribute them to players. + // TODO: these chips should be given to the stronger hand first idx := 0 for mainPot > 0 { res[idx].Gain += 1