From 39ad552cb5f48c288e1d7a62e80ceb180882eae0 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 30 Sep 2026 17:30:00 -0400 Subject: chore: remove dead casino code and fold duplicated menu/odds logic --- internal/casino/craps_variants.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/casino/craps_variants.go') 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": -- cgit v1.2.3