aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/registry.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 04:26:20 -0400
committerhistoria <[not public]>2026-10-01 04:26:20 -0400
commit0ba388bbe229dd1ccfcb0831d21a5542ae0935f1 (patch)
treec5686cf404e3dc5001d2c9b2792749ae7a3c9801 /internal/casino/registry.go
parente3ff06fc79682673194c8913f0feb9e90920e7d0 (diff)
downloadthehouseoficarus-0ba388bbe229dd1ccfcb0831d21a5542ae0935f1.tar.gz
feat: video poker machines added to 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 049d9f1..dfce704 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{
+ GameVideoPoker: {
+ validate: func(c TableConfig) error {
+ if c.MaxPlayers > 1 {
+ return fmt.Errorf("video poker cabinets have one seat")
+ }
+ return c.VideoPoker.Validate()
+ },
+ normalize: func(c TableConfig) TableConfig { c.VideoPoker = c.VideoPoker.Normalize(); c.MaxPlayers = 1; return c },
+ ruleBlockName: "video_poker",
+ hasRuleBlock: func(c TableConfig) bool { return c.VideoPoker != (VideoPokerConfig{}) },
+ new: newVideoPokerTable,
+ ruleText: func(c TableConfig) string { return pokerRules(c.VideoPoker) },
+ helpTopic: func(c TableConfig) string { return pokerHelpTopic(c.VideoPoker) },
+ },
GameCraps: {
validate: validateCraps,
normalize: func(c TableConfig) TableConfig { c.Craps = c.Craps.Normalize(); return c },