From 0ba388bbe229dd1ccfcb0831d21a5542ae0935f1 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 1 Oct 2026 04:26:20 -0400 Subject: feat: video poker machines added to 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 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 }, -- cgit v1.2.3