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 a27a9dd..4366bc6 100644
--- a/internal/casino/registry.go
+++ b/internal/casino/registry.go
@@ -84,6 +84,20 @@ func init() {
ruleText: func(c TableConfig) string { return c.CrapsRulesText() },
helpTopic: func(c TableConfig) string { return c.Craps.helpTopic() },
},
+ GameBigSix: {
+ houseEdge: bigSixHouseEdge,
+ validate: func(c TableConfig) error {
+ if c.BettingTicks != 0 && c.BettingTicks != 25 {
+ return fmt.Errorf("Big 6 betting_ticks must be 25")
+ }
+ return nil
+ },
+ normalize: func(c TableConfig) TableConfig { c.BettingTicks = 25; return c },
+ hasRuleBlock: func(TableConfig) bool { return false },
+ new: func(room int, c TableConfig, rng *rand.Rand) tableGame { return newBigSixTable(room, c, rng) },
+ ruleText: bigSixRules,
+ helpTopic: func(TableConfig) string { return "big6" },
+ },
GameRoulette: {
houseEdge: rouletteHouseEdge,
validate: func(c TableConfig) error {