diff options
| author | historia <[not public]> | 2026-10-03 01:46:58 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 01:46:58 -0400 |
| commit | efccf58741ae43d9e891c6b743b146982b344ccf (patch) | |
| tree | 505a068497c5531b91ac72da32db14145737e982 /internal/game/look_casino.go | |
| parent | 0ec8f3692960a064616e630c914058298b22897b (diff) | |
| download | thehouseoficarus-efccf58741ae43d9e891c6b743b146982b344ccf.tar.gz | |
fix: don't show roulette table after each bet
Diffstat (limited to 'internal/game/look_casino.go')
| -rw-r--r-- | internal/game/look_casino.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/game/look_casino.go b/internal/game/look_casino.go index 1e91ced..8d2b5c3 100644 --- a/internal/game/look_casino.go +++ b/internal/game/look_casino.go @@ -66,7 +66,8 @@ func (g *Game) resolveRoomTable(sess *net.Session, target string, game casino.Ga } // renderCasinoTableDetails formats the details block and, for the felt games, -// the per-table rule card. It never prints the craps or roulette board. +// the per-table rule card. Roulette adds its live wheel; craps never prints a +// board here. func (g *Game) renderCasinoTableDetails(sess *net.Session, cfg casino.TableConfig, table *casino.Table) string { seats := table.Seats() seated := "no one" @@ -82,6 +83,12 @@ func (g *Game) renderCasinoTableDetails(sess *net.Session, cfg casino.TableConfi fmt.Sprintf(" Seated %s", seated), } switch cfg.Game { + case casino.GameRoulette: + // Look, like sitting down and the table command, shows the live + // wheel: tracker, racetrack, and betting layout. + if rendered := strings.TrimRight(g.renderCasinoSnapshot(sess, table.Board(sess.Player.Name)), "\n"); rendered != "" { + lines = append(lines, "", rendered) + } case casino.GameBlackjack: lines = append(lines, "", g.renderCasinoSnapshot(sess, &casino.BlackjackRulesView{Config: cfg})) case casino.GameBaccarat: |
