From a5b9c1052c4640ba519e608e0c97e603ce6aa5ef Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 30 Sep 2026 18:57:30 -0400 Subject: feat: blackjack and baccarat rules felt added, casino layout simplified --- internal/game/render_roulette.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'internal/game/render_roulette.go') diff --git a/internal/game/render_roulette.go b/internal/game/render_roulette.go index 1e7f971..0e4b1a3 100644 --- a/internal/game/render_roulette.go +++ b/internal/game/render_roulette.go @@ -597,6 +597,13 @@ func renderRouletteResult(pockets [5]string, mode string, unicode bool, size int } func (g *Game) renderCasinoRules(sess *net.Session, cfg casino.TableConfig) string { + if cfg.Game == casino.GameBlackjack { + // The whole rule card is a rendered felt. + return g.renderCasinoSnapshot(sess, &casino.BlackjackRulesView{Config: cfg}) + } + if cfg.Game == casino.GameBaccarat { + return g.renderCasinoSnapshot(sess, &casino.BaccaratRulesView{Config: cfg}) + } rules := g.colorize(sess, "casino_action", cfg.RulesText()) if cfg.Game == casino.GameCraps { snap := &casino.CrapsSnapshot{Phase: "waiting"} -- cgit v1.2.3