aboutsummaryrefslogtreecommitdiff
path: root/internal/game/render_craps.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-06 12:57:23 -0400
committerhistoria <[not public]>2026-10-06 12:57:23 -0400
commit9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch)
tree0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/render_craps.go
parent4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff)
downloadthehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/game/render_craps.go')
-rw-r--r--internal/game/render_craps.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/game/render_craps.go b/internal/game/render_craps.go
index e4e6618..57b7b79 100644
--- a/internal/game/render_craps.go
+++ b/internal/game/render_craps.go
@@ -448,7 +448,7 @@ func renderCrapsDice(dice [2]int, mode string, unicode bool) string {
{" ● ● ", " ● ", " ● ● "},
{" ● ● ", " ● ● ", " ● ● "},
}
- colored := mode != "" && mode != "none"
+ colored := !color.Plain(mode)
face := color.ColorSpec{Fg: 0, Bg: 15}
cap := color.ColorSpec{Fg: 15, Bg: -1}
var out strings.Builder
@@ -555,7 +555,6 @@ func renderCrapsSnapshot(s *casino.CrapsSnapshot, mode string, unicode bool, sty
}
hint := ""
if s.Phase != "waiting" && s.Phase != "" {
- hint = ""
if s.Variant == "simplified" {
if s.ShootIn > 0 {
hint = fmt.Sprintf("The dice roll in %dt.", s.ShootIn)