aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/registry.go
diff options
context:
space:
mode:
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 },