diff options
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 { |
