diff options
| author | historia <[not public]> | 2026-09-30 17:30:00 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-30 17:30:00 -0400 |
| commit | 39ad552cb5f48c288e1d7a62e80ceb180882eae0 (patch) | |
| tree | 50ec7474012db8dd092ed996d592591ec9425d39 /internal/casino/craps_variants.go | |
| parent | a18bc0a38e3a90bcd91260d7abfef340f093a9bd (diff) | |
| download | thehouseoficarus-39ad552cb5f48c288e1d7a62e80ceb180882eae0.tar.gz | |
chore: remove dead casino code and fold duplicated menu/odds logic
Diffstat (limited to 'internal/casino/craps_variants.go')
| -rw-r--r-- | internal/casino/craps_variants.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/casino/craps_variants.go b/internal/casino/craps_variants.go index b3be51b..e64fd0f 100644 --- a/internal/casino/craps_variants.go +++ b/internal/casino/craps_variants.go @@ -75,10 +75,18 @@ func (c CrapsConfig) outcome(kind string, n, a, b, point int) (bool, int, int) { s := a + b switch c.variant() { case "simplified": - if s == 2 || s == 3 || s == 4 || s == 10 || s == 11 || s == 12 { + switch s { + case 2: + return true, 3, 1 + case 3, 4: return true, 1, 1 + case 10, 11: + return true, 2, 1 + case 12: + return true, 5, 1 + default: + return true, -1, 1 } - return true, -1, 1 case "high_point": if n == 0 { if s == 2 || s == 3 { @@ -161,7 +169,7 @@ func (c CrapsConfig) variantRulesText() string { rules := "" switch c.variant() { case "simplified": - rules = "Pass only, one roll: 2/3/4/10/11/12 win 1:1; 5/6/7/8/9 lose. No point. A loss passes the dice." + rules = "Pass only, one roll of two dice. Net payouts: 2 pays 3:1; 3/4 pay 1:1; 10/11 pay 2:1; 12 pays 5:1. Totals 5/6/7/8/9 lose. Winning bets also return their stake. No point, odds, come, place, side bets or multi-roll wagers. House edge: 1/36 (approximately 2.78%). A loss passes the dice." case "high_point": rules = "Pass only, 1:1. Come-out 2/3 roll again, 11/12 win; 4-10 establish a point. The very next roll wins only if HIGHER than the point; equal/lower loses. Loss passes the dice." case "die_rich": |
