aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/craps_projection.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-03 00:51:41 -0400
committerhistoria <[not public]>2026-10-03 00:51:41 -0400
commit82e571d227feeafd0af4011e701ce26b99c5e3d9 (patch)
treeab4d56ddf94c3bf3b42fff5dfc2ff9a339f09113 /internal/casino/craps_projection.go
parentcac16d1725c46c82a2e62b84c93f7090b2ce0746 (diff)
downloadthehouseoficarus-82e571d227feeafd0af4011e701ce26b99c5e3d9.tar.gz
fix: craps felt and wager description cleanup
Diffstat (limited to 'internal/casino/craps_projection.go')
-rw-r--r--internal/casino/craps_projection.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/casino/craps_projection.go b/internal/casino/craps_projection.go
index 65f09ce..7e7c305 100644
--- a/internal/casino/craps_projection.go
+++ b/internal/casino/craps_projection.go
@@ -16,7 +16,9 @@ func crapsReturn(b *crapsBet, profit, den, oddsProfit int, refundOdds bool) int
if b.kind == "buy" {
base = b.stake.Total
}
- payout -= (base + 19) / 20
+ // The house rounds its 5% vig down to whole credits; the bet units
+ // above keep the common stakes exact so this rarely bites.
+ payout -= base / 20
}
}
if b.odds.Total > 0 {