From 13db3e50cb6e29eedbf25416e5284bf08b0adefb Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 24 Sep 2026 20:06:41 -0400 Subject: feat: casino table ux: aliases, rebet hints, deadline notifications, spectator mode --- internal/casino/core.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'internal/casino/core.go') diff --git a/internal/casino/core.go b/internal/casino/core.go index 7143841..a927ab1 100644 --- a/internal/casino/core.go +++ b/internal/casino/core.go @@ -89,7 +89,15 @@ func (c *tableCore[P]) openBettingLocked(events []Event) []Event { func (c *tableCore[P]) advanceBettingLocked(resolve func() []Event, reset func()) []Event { sitOuts, goRound, pending := c.window.advance(c.players.participants()) if pending { - return nil + var events []Event + if c.window.timer.warn() { + for _, p := range c.players.participants() { + if p.Connected && !p.HasBet && !p.SittingOut { + events = append(events, c.warning(p.Name, fmt.Sprintf("Betting closes in %d ticks. Bet now or sit out this hand.", c.window.timer.remaining()))) + } + } + } + return events } var events []Event for _, name := range sitOuts { -- cgit v1.2.3