aboutsummaryrefslogtreecommitdiff
path: root/internal/game/casino_house_edge.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/casino_house_edge.go')
-rw-r--r--internal/game/casino_house_edge.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/internal/game/casino_house_edge.go b/internal/game/casino_house_edge.go
index 8bc3a5b..19d8cc2 100644
--- a/internal/game/casino_house_edge.go
+++ b/internal/game/casino_house_edge.go
@@ -90,8 +90,9 @@ func (g *Game) casinoListRows(sess *net.Session, t *casino.Table, wagers []casin
// Explicit list-only presentation. Wrap plain cells before applying color and
// handing them to the existing ANSI-aware table renderer; never truncate rules.
-// The table stands alone: list names no heading and no balance above it.
-func (g *Game) showCasinoListTable(sess *net.Session, hint string, rows []casinoListRow) {
+// The table stands alone: list names no heading and no balance above it, and
+// the first column header carries the bet syntax instead of a hint line below.
+func (g *Game) showCasinoListTable(sess *net.Session, betHeader string, rows []casinoListRow) {
precision, hasItem := g.casinoEdgePrecision(sess)
// The item adds a column only when at least one listed wager has a real
// analysis; decision actions such as hit/stand have none.
@@ -104,7 +105,7 @@ func (g *Game) showCasinoListTable(sess *net.Session, hint string, rows []casino
}
}
}
- headers := []string{"Bet", "Odds", "Win / action"}
+ headers := []string{betHeader, "Odds", "Win / action"}
categories := []string{"command", "casino_payout", ""}
if rtp {
headers = append(headers, "RTP")
@@ -183,8 +184,5 @@ func (g *Game) showCasinoListTable(sess *net.Session, hint string, rows []casino
}
}
out := table.Render(unicode, width)
- if hint != "" {
- out = append(out, g.colorize(sess, "command", hint))
- }
sess.WriteLine(strings.Join(out, "\n"))
}