diff options
Diffstat (limited to 'internal/game/render_roulette.go')
| -rw-r--r-- | internal/game/render_roulette.go | 7 |
1 files changed, 7 insertions, 0 deletions
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"} |
