aboutsummaryrefslogtreecommitdiff
path: root/internal/game/render_pai_gow.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/render_pai_gow.go')
-rw-r--r--internal/game/render_pai_gow.go17
1 files changed, 12 insertions, 5 deletions
diff --git a/internal/game/render_pai_gow.go b/internal/game/render_pai_gow.go
index 239ddb4..d364c61 100644
--- a/internal/game/render_pai_gow.go
+++ b/internal/game/render_pai_gow.go
@@ -9,8 +9,8 @@ import (
)
func renderPaiGowFelt(cfg casino.TableConfig, mode string, unicode bool) string {
- c := newCrapsCanvas(25)
- c.box(0, 0, 76, 24)
+ c := newCrapsCanvas(24)
+ c.box(0, 0, 76, 23)
c.center(1, 75, 1, strings.ToUpper(cfg.PaiGow.Label()), crapsGold)
c.center(1, 75, 2, "LIMITS "+betLimitsText(cfg.MinBet, cfg.MaxBet), crapsInk)
note := "5% COMMISSION"
@@ -30,12 +30,15 @@ func renderPaiGowFelt(cfg casino.TableConfig, mode string, unicode bool) string
if cfg.PaiGow.Envy {
envy = "ENVY"
}
- c.text(62, 5, envy, crapsGold)
+ // Center the Envy header and its values over the same narrow field so the
+ // numbers sit under the label instead of hanging off its right edge.
+ const envyLeft, envyRight = 62, 66
+ c.center(envyLeft, envyRight, 5, envy, crapsGold)
for i, row := range casino.FortunePayTable(cfg.PaiGow.Envy) {
c.text(3, 6+i, row.Hand, crapsInk)
c.text(50, 6+i, fmt.Sprintf("%d:1", row.Odds), crapsInk)
if cfg.PaiGow.Envy {
- c.text(65, 6+i, fmt.Sprintf("%d", row.Envy), crapsInk)
+ c.center(envyLeft, envyRight, 6+i, fmt.Sprintf("%d", row.Envy), crapsInk)
}
}
c.center(1, 75, 18, "Highest prize only. Winning Fortune wagers also return their stake.", crapsMuted)
@@ -45,7 +48,11 @@ func renderPaiGowFelt(cfg casino.TableConfig, mode string, unicode bool) string
}
c.center(1, 75, 20, note, crapsInk)
c.center(1, 75, 21, "High must outrank low. Copies lose.", crapsMuted)
- c.center(1, 75, 22, "Joker: ace or completes straight/flush.", crapsMuted)
+ joker := "Joker: ace or completes straight/flush."
+ if cfg.PaiGow.A2345High() {
+ joker = "Joker: ace or completes straight/flush. A2345 is second-highest straight."
+ }
+ c.center(1, 75, 22, joker, crapsMuted)
return c.render(mode, unicode)
}
func renderPaiGow(s *casino.PaiGowSnapshot, mode string, unicode bool, size int, style string, store *cardart.Store) string {