aboutsummaryrefslogtreecommitdiff
path: root/internal/game/render_pai_gow.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 19:30:38 -0400
committerhistoria <[not public]>2026-10-01 19:30:38 -0400
commit6d9908b29c8187196d23b126b1165c7e0bd0fc76 (patch)
treeddbc02357ed92646b801687b90b1a06c71a15d71 /internal/game/render_pai_gow.go
parent8a94f21bd47c0a00bc415395232dba22fa958837 (diff)
downloadthehouseoficarus-6d9908b29c8187196d23b126b1165c7e0bd0fc76.tar.gz
fix: casino pai gow sorting, universal unbet, table/rules split, remove solo timers
Diffstat (limited to 'internal/game/render_pai_gow.go')
-rw-r--r--internal/game/render_pai_gow.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/internal/game/render_pai_gow.go b/internal/game/render_pai_gow.go
index 4b31373..b125a68 100644
--- a/internal/game/render_pai_gow.go
+++ b/internal/game/render_pai_gow.go
@@ -72,8 +72,9 @@ func paiGowNumberLabels(nums []int, mode string) []string {
return labels
}
-// paiGowCardBlock renders one labeled run of cards: an optional centered
-// header over the card art and, when nums is set, position numbers below.
+// paiGowCardBlock renders one labeled run of cards: an optional header over
+// the card art and, when nums is set, position numbers below. The header is
+// plain left-justified text, not centered, so the hand labels read normally.
func paiGowCardBlock(header string, cards []casino.CardView, nums []int, mode string, unicode bool, size int, style string, store *cardart.Store) []string {
if len(cards) == 0 {
return nil
@@ -86,11 +87,7 @@ func paiGowCardBlock(header string, cards []casino.CardView, nums []int, mode st
if header == "" {
return lines
}
- width := 0
- for _, line := range lines {
- width = max(width, color.VisibleLen(line))
- }
- return append([]string{rouletteCenter(header, width)}, lines...)
+ return append([]string{header}, lines...)
}
// paiGowJoinBlocks sets two card blocks side by side with a gutter between