aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/registry.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 14:38:08 -0400
committerhistoria <[not public]>2026-10-01 14:38:08 -0400
commit1082f3336085c15992ca83d5553c0ba52208d70a (patch)
tree4fcedaa90bc01c41456258a9d57f492f31754948 /internal/casino/registry.go
parentd4eae333a8d8a96452bbf3617aa85b50466c11a7 (diff)
downloadthehouseoficarus-1082f3336085c15992ca83d5553c0ba52208d70a.tar.gz
feat: pai gow poker added to the casino
Diffstat (limited to 'internal/casino/registry.go')
-rw-r--r--internal/casino/registry.go14
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 {