aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/video_poker.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-03 02:16:00 -0400
committerhistoria <[not public]>2026-10-03 02:16:00 -0400
commit6232d41e5639f9c38e47b2bb65266e343ca26e8f (patch)
treead0c1676838a6c7e162d3a5c055f914016dac803 /internal/casino/video_poker.go
parentefccf58741ae43d9e891c6b743b146982b344ccf (diff)
downloadthehouseoficarus-6232d41e5639f9c38e47b2bb65266e343ca26e8f.tar.gz
feat: add casino_hints option and standardize casino command syntax
Diffstat (limited to 'internal/casino/video_poker.go')
-rw-r--r--internal/casino/video_poker.go14
1 files changed, 7 insertions, 7 deletions
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 <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"},
+ 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 <name>, denom 1|10|50, hands <count>, 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 {