From 6232d41e5639f9c38e47b2bb65266e343ca26e8f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 3 Oct 2026 02:16:00 -0400 Subject: feat: add casino_hints option and standardize casino command syntax --- internal/casino/video_poker.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'internal/casino/video_poker.go') diff --git a/internal/casino/video_poker.go b/internal/casino/video_poker.go index d2578b8..4cb9883 100644 --- a/internal/casino/video_poker.go +++ b/internal/casino/video_poker.go @@ -147,7 +147,7 @@ func (t *videoPokerTable) hintsLocked(name string) []MenuCommand { if t.players[name] == nil { return nil } - commands := []MenuCommand{{Command: "bet [1-4|max]", Desc: "Load coins (up to five per hand)"}, {Command: "deal", Desc: "Pay and deal the loaded wager"}} + commands := []MenuCommand{{Command: "bet [1-4|MAX]", Desc: "Load coins (up to five per hand)"}, {Command: "deal", Desc: "Pay and deal the loaded wager"}} if p := t.players[name]; p != nil && p.active { commands = []MenuCommand{{Command: "1 3 5", Desc: "Toggle held cards (531 also works)"}, {Command: "draw", Desc: "Replace unheld cards on every line"}} if p.drawn { @@ -155,9 +155,9 @@ func (t *videoPokerTable) hintsLocked(name string) []MenuCommand { } } else { commands = append(commands, - MenuCommand{Command: "game ", Desc: t.settings.GameChoices()}, - MenuCommand{Command: "denom <1|10|50>", Desc: "Credits per coin"}, - MenuCommand{Command: "hands ", Desc: "Supported hand counts are announced by hands"}, + MenuCommand{Command: "game NAME", Desc: t.settings.GameChoices()}, + MenuCommand{Command: "denom 1|10|50", Desc: "Credits per coin"}, + MenuCommand{Command: "hands COUNT", Desc: "Supported hand counts are announced by hands"}, ) if cabinetFeature(t.settings.Cabinet) != "" { commands = append(commands, MenuCommand{Command: "feature on|off", Desc: "Toggle the extra-cost bonus"}) @@ -298,7 +298,7 @@ func (t *videoPokerTable) bet(name, spot string, amount int, w Wallet) []Event { return []Event{t.private(name, "Finish this hand with draw first.")} } if p.loaded == 0 { - return []Event{t.private(name, "Load coins first: bet [1-4|max].")} + return []Event{t.private(name, "Load coins first: bet [1-4|MAX].")} } if p.featureOn && p.loaded != 5 { return []Event{t.private(name, "The feature requires five wager coins per hand. Use bet max or feature off.")} @@ -406,7 +406,7 @@ func (t *videoPokerTable) action(name, action string) []Event { default: add, err := strconv.Atoi(fields[1]) if err != nil || add < 1 || add > 4 { - return []Event{t.private(name, "Use bet [1-4|max].")} + return []Event{t.private(name, "Use bet [1-4|MAX].")} } n = min(5, p.loaded+add) } @@ -462,7 +462,7 @@ func (t *videoPokerTable) action(name, action string) []Event { p.clearResult() return t.statusLocked(name, false) } - return []Event{t.private(name, "Use bet [1-4|max], unbet, deal, game , denom 1|10|50, hands , paytable, or feature on|off on a bonus cabinet.")} + return []Event{t.private(name, "Use bet [1-4|MAX], unbet, deal, game NAME, denom 1|10|50, hands COUNT, paytable, or feature on|off on a bonus cabinet.")} } func (t *videoPokerTable) drawLocked(name string, p *pokerPlayer) []Event { -- cgit v1.2.3