commit 98de6d5efa712774e4f5d5c50e833a250ea5c951
parent 66b2ef038ef03aa25bdb4a7f02fe1641c28553ed
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Tue, 5 Dec 2023 04:17:55 -0500
cleanup
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go
@@ -309,6 +309,10 @@ func (g *PokerGame) Deal(roomID string) {
time.Sleep(time.Second)
waitPlayersActionFn()
+ for idx := range g.Players {
+ g.Players[idx].Cash = g.Ongoing.Players[idx].Cash
+ }
+
// TODO: evaluate hands, and crown winner
g.IsGameDone = true
PokerPubSub.Pub(myTopic, GameIsDoneEvent{DeckStr: strings.Join(g.Ongoing.Deck, "")})
@@ -865,6 +869,7 @@ Loop:
#yourCard2:before { content: ""; }
#deckHash:before { content: ""; }
#deckStr:before { content: ""; }
+ #mainPot:before { content: "Pot: 0"; }
</style>`
send(html)
c.Response().Flush()