aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/registry.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-03 07:11:58 -0400
committerhistoria <[not public]>2026-10-03 07:11:58 -0400
commit0fb83bdf433b9b48240f4ac7a5d4c912f6b808cc (patch)
treeac0af51cc2513b1ddd8a280f360af820d1f097af /internal/casino/registry.go
parent6232d41e5639f9c38e47b2bb65266e343ca26e8f (diff)
downloadthehouseoficarus-0fb83bdf433b9b48240f4ac7a5d4c912f6b808cc.tar.gz
feat: added big 6 wheel 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 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 {