dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit ddeaf1f59c55336184a35e28e801fd2478ea87b8
parent ab7c91b5b4fd42902117a14f1c56900dcb20f5d6
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat,  9 Dec 2023 06:27:49 -0500

fix

Diffstat:
Mpkg/web/handlers/poker/poker.go | 15+++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -429,14 +429,6 @@ func waitPlayersActionFn(g *PokerGame, roomID string, skip, minBet int) bool { nbCanVote++ } } - if nbCanVote == 0 { - // TODO: Refund bets - playerAlive = 0 - goto END1 - } else if nbCanVote == 1 { - playerAlive = 1 - goto END1 - } for _, p := range g.Ongoing.Players { if !p.Folded.Load() { @@ -444,6 +436,13 @@ func waitPlayersActionFn(g *PokerGame, roomID string, skip, minBet int) bool { } } + if nbCanVote == 0 { + // TODO: Refund bets + goto END1 + } else if nbCanVote == 1 { + goto END1 + } + // TODO: implement maximum re-raise OUTER: