diff options
| author | historia <[not public]> | 2026-10-01 14:38:08 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 14:38:08 -0400 |
| commit | 1082f3336085c15992ca83d5553c0ba52208d70a (patch) | |
| tree | 4fcedaa90bc01c41456258a9d57f492f31754948 /internal/casino/registry.go | |
| parent | d4eae333a8d8a96452bbf3617aa85b50466c11a7 (diff) | |
| download | thehouseoficarus-1082f3336085c15992ca83d5553c0ba52208d70a.tar.gz | |
feat: pai gow poker added to the casino
Diffstat (limited to 'internal/casino/registry.go')
| -rw-r--r-- | internal/casino/registry.go | 14 |
1 files changed, 14 insertions, 0 deletions
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 { |
