From 1082f3336085c15992ca83d5553c0ba52208d70a Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 1 Oct 2026 14:38:08 -0400 Subject: feat: pai gow poker added to the casino --- internal/casino/registry.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'internal/casino/registry.go') diff --git a/internal/casino/registry.go b/internal/casino/registry.go index dfce704..25fbce5 100644 --- a/internal/casino/registry.go +++ b/internal/casino/registry.go @@ -41,6 +41,20 @@ var tableGames map[GameName]tableGameDef func init() { tableGames = map[GameName]tableGameDef{ + GamePaiGow: { + validate: validatePaiGow, + normalize: func(c TableConfig) TableConfig { + c.PaiGow = c.PaiGow.Normalize() + c.MaxPlayers = min(c.MaxPlayers, 6) + c.MaxBet = min(c.MaxBet, pgMaxWager) + return c + }, + ruleBlockName: "pai_gow", + hasRuleBlock: func(c TableConfig) bool { return c.PaiGow != (PaiGowConfig{}) }, + new: newPaiGowTable, + ruleText: paiGowRules, + helpTopic: func(TableConfig) string { return "pai gow poker" }, + }, GameVideoPoker: { validate: func(c TableConfig) error { if c.MaxPlayers > 1 { -- cgit v1.2.3