diff options
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) |
