diff options
| author | historia <[not public]> | 2026-09-30 17:49:28 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-30 17:49:28 -0400 |
| commit | 2317022c16b520dd5272facfd5092a4c58cac44b (patch) | |
| tree | cc7501ecfb106e462457b2ba3489e7ce14d64c5a /internal/game/render_craps.go | |
| parent | 39ad552cb5f48c288e1d7a62e80ceb180882eae0 (diff) | |
| download | thehouseoficarus-2317022c16b520dd5272facfd5092a4c58cac44b.tar.gz | |
fix: simplified simplified craps, removed unnecessary commands and instructions
Diffstat (limited to 'internal/game/render_craps.go')
| -rw-r--r-- | internal/game/render_craps.go | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/internal/game/render_craps.go b/internal/game/render_craps.go index d6db43f..64c910e 100644 --- a/internal/game/render_craps.go +++ b/internal/game/render_craps.go @@ -334,13 +334,18 @@ func renderCrapsSnapshot(s *casino.CrapsSnapshot, mode string, unicode bool, sty point = fmt.Sprintf("POINT %d", s.Point) } if s.Variant == "simplified" { - point = "ONE ROLL" + // The title alone says it: simplified craps has no point phase. + point = "" } variant := s.Variant if variant == "" { variant = "bank" } - out.WriteString("\n" + title(" "+strings.ToUpper(strings.ReplaceAll(variant, "_", " "))+" CRAPS") + subtle(" / "+point) + "\n") + out.WriteString("\n" + title(" "+strings.ToUpper(strings.ReplaceAll(variant, "_", " "))+" CRAPS")) + if point != "" { + out.WriteString(subtle(" / "+point)) + } + out.WriteString("\n") if variant == "bank" || variant == "diceless" { out.WriteString(renderCrapsTrackers(s, mode, unicode)) out.WriteByte('\n') @@ -383,7 +388,11 @@ func renderCrapsSnapshot(s *casino.CrapsSnapshot, mode string, unicode bool, sty hint := "" if s.Phase != "waiting" && s.Phase != "" { hint = "" - if s.ShootIn > 0 { + if s.Variant == "simplified" { + if s.ShootIn > 0 { + hint = fmt.Sprintf("The dice roll in %ds.", s.ShootIn) + } + } else if s.ShootIn > 0 { hint = fmt.Sprintf("Bets open. Shooter ready in %ds.", s.ShootIn) } else if s.DealerIn > 0 { hint = fmt.Sprintf("Shooter ready. Dealer rolls in %ds; bets still open.", s.DealerIn) |
