commit 503f4b1031c90c75d9dfa8963f8203672c562627
parent f39ef8c13d7e37ceae7918dfa694eae2ad65ccab
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Mon, 4 Dec 2023 22:41:14 -0500
add flag IsGameOver
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go
@@ -70,6 +70,7 @@ type PokerGame struct {
Players []string
Ongoing *Ongoing
DealerIdx int
+ IsGameOver bool
}
func (g *PokerGame) Deal(roomID string) {
@@ -248,6 +249,7 @@ func (g *PokerGame) Deal(roomID string) {
// Wait a minimum of X seconds before allowing a new game
time.Sleep(10 * time.Second)
+ g.IsGameOver = true
}()
}