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