diff options
| author | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 00:51:41 -0400 |
| commit | 82e571d227feeafd0af4011e701ce26b99c5e3d9 (patch) | |
| tree | ab4d56ddf94c3bf3b42fff5dfc2ff9a339f09113 /internal/casino/craps_ux.go | |
| parent | cac16d1725c46c82a2e62b84c93f7090b2ce0746 (diff) | |
| download | thehouseoficarus-82e571d227feeafd0af4011e701ce26b99c5e3d9.tar.gz | |
fix: craps felt and wager description cleanup
Diffstat (limited to 'internal/casino/craps_ux.go')
| -rw-r--r-- | internal/casino/craps_ux.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/internal/casino/craps_ux.go b/internal/casino/craps_ux.go index 7e44e39..0a7932d 100644 --- a/internal/casino/craps_ux.go +++ b/internal/casino/craps_ux.go @@ -22,11 +22,11 @@ func (t *crapsTable) commands(name string) []MenuCommand { commands = append(commands, MenuCommand{Command: "bet <amount>", Desc: "Wager on pass; the dice roll 3 ticks after a bet"}) } } else { - target := "<target>" + target := "<bet>" if !t.Config.Craps.allows("buy") { target = "pass" } - commands = append(commands, MenuCommand{Command: "bet <amount> on " + target, Desc: "Place a wager; targets: list"}) + commands = append(commands, MenuCommand{Command: "bet <n> on " + target, Desc: "Place a wager"}) } } if p.HasBet { @@ -69,6 +69,17 @@ func crapsContract(kind string) bool { return false } } + +// crapsHasPassLine reports whether the player holds a pass-line contract, so +// the point-established prompt only nudges the people it can pay. +func crapsHasPassLine(p *crapsPlayer) bool { + for _, b := range p.bets { + if b.kind == "pass" { + return true + } + } + return false +} func crapsBetLabel(b *crapsBet) string { names := map[string]string{"pass": "Pass", "dontpass": "Don't pass", "come": "Come", "dontcome": "Don't come", "ace-deuce": "Ace-deuce", "small": "All Small", "tall": "All Tall", "all": "All", "fire": "Fire"} label := names[b.kind] |
