diff options
Diffstat (limited to 'internal/game/render_baccarat_felt.go')
| -rw-r--r-- | internal/game/render_baccarat_felt.go | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/internal/game/render_baccarat_felt.go b/internal/game/render_baccarat_felt.go index 4757764..608ef93 100644 --- a/internal/game/render_baccarat_felt.go +++ b/internal/game/render_baccarat_felt.go @@ -12,7 +12,7 @@ import ( // table across the bottom. Reuses the shared felt canvas and palette. func renderBaccaratRulesFelt(cfg casino.TableConfig, mode string, unicode bool) string { b := cfg.Baccarat.Normalize() - c := newCrapsCanvas(22) + c := newCrapsCanvas(26) // Title block: variant, scoring, naturals. c.box(0, 0, 76, 4) c.center(1, 75, 1, baccaratVariantTitle(b), crapsGold) @@ -60,17 +60,29 @@ func renderBaccaratRulesFelt(cfg casino.TableConfig, mode string, unicode bool) for j, row := range house { c.bjRule(38, 76, 10+j, row[0], row[1]) } - // Drawing table across the bottom. - c.box(0, 15, 76, 21) + // Drawing table across the bottom: one row per hand total, with the + // player rule and each banker situation in its own column. + c.box(0, 15, 76, 25) c.center(1, 75, 16, "DRAWING — AUTOMATIC PUNTO BANCO", crapsGold) - draw := []string{ - "PLAYER: DRAWS 0-5; STANDS 6-7. BANKER VS A STANDING PLAYER: DRAWS 0-5.", - "BANKER VS A DRAWING PLAYER: 0-2 ALWAYS DRAWS; 3 DRAWS UNLESS VS 8;", - "4 DRAWS VS 2-7; 5 DRAWS VS 4-7; 6 DRAWS VS 6-7; 7 STANDS.", - "ONE MAIN BET (PLAYER/BANKER/TIE) PLUS SIDE BETS; SIDE BETS FIRST.", + c.text(3, 17, "HAND", crapsGold) + c.text(9, 17, "PLAYER", crapsGold) + c.text(18, 17, "BANKER (PLAYER STANDS)", crapsGold) + c.text(44, 17, "BANKER (PLAYER DRAWS)", crapsGold) + c.box(1, 18, 75, 18) + drawRows := [][4]string{ + {"0-2", "draw", "draw", "draw"}, + {"3", "draw", "draw", "draw unless vs 8"}, + {"4", "draw", "draw", "draw vs 2-7"}, + {"5", "draw", "draw", "draw vs 4-7"}, + {"6", "stand", "stand", "draw vs 6-7"}, + {"7", "stand", "stand", "stand"}, } - for i, line := range draw { - c.text(3, 17+i, line, crapsInk) + for i, row := range drawRows { + y := 19 + i + c.text(3, y, row[0], crapsInk) + c.text(9, y, row[1], crapsInk) + c.text(18, y, row[2], crapsInk) + c.text(44, y, row[3], crapsInk) } return c.render(mode, unicode) } |
