diff options
| author | historia <[not public]> | 2026-10-02 02:16:44 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 02:16:44 -0400 |
| commit | 62017c86392b046d746fb4fafef6742840477c5f (patch) | |
| tree | eab569e29e858ff79b8ce06caa9bacb28bc9ee81 /internal/game/casino_house_edge.go | |
| parent | d3a305d1d7962f82af2397760cf8008758bddd1d (diff) | |
| download | thehouseoficarus-62017c86392b046d746fb4fafef6742840477c5f.tar.gz | |
feat: polish 'list' output, drop sitout command
Diffstat (limited to 'internal/game/casino_house_edge.go')
| -rw-r--r-- | internal/game/casino_house_edge.go | 10 |
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")) } |
