diff options
| author | historia <[not public]> | 2026-09-30 20:50:45 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-30 20:50:45 -0400 |
| commit | e3ff06fc79682673194c8913f0feb9e90920e7d0 (patch) | |
| tree | 86e25670b5bd02d9868130afcc7a69ec1b7b9ed1 /internal/casino/craps_variants.go | |
| parent | a5b9c1052c4640ba519e608e0c97e603ce6aa5ef (diff) | |
| download | thehouseoficarus-e3ff06fc79682673194c8913f0feb9e90920e7d0.tar.gz | |
feat: look, rules, and list commands updated for casino games
Diffstat (limited to 'internal/casino/craps_variants.go')
| -rw-r--r-- | internal/casino/craps_variants.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/casino/craps_variants.go b/internal/casino/craps_variants.go index a3c078f..7d4d246 100644 --- a/internal/casino/craps_variants.go +++ b/internal/casino/craps_variants.go @@ -13,6 +13,30 @@ func (c CrapsConfig) variant() string { } return c.Variant } + +// helpTopic names the help page the "rules" command opens: every house +// +// edition has its own page (Simplified Craps is a two-screen quick guide, +// not a link into the bank-craps manual), except diceless which plays full +// bank rules with cards instead of dice. +func (c CrapsConfig) helpTopic() string { + switch c.variant() { + case "simplified": + return "simplified craps" + case "high_point": + return "high point craps" + case "die_rich": + return "die rich craps" + case "new_york": + return "new york craps" + case "crapless": + return "crapless craps" + case "diceless": + return "diceless craps" + default: + return "craps" + } +} func (c CrapsConfig) title() string { switch c.variant() { case "simplified": |
