From fdc8024a61b21314fb1ca1ab6d8adf45c9c7b063 Mon Sep 17 00:00:00 2001 From: salmonik Date: Mon, 24 Aug 2026 18:30:25 +0200 Subject: Balance slots payouts: EV=0.972 (2.8% house edge). Three-of-a-kind: 2-28x, two-of-a-kind: 1-3x. --- src/bin/client/games/slots.rs | 4 ++-- src/bin/server/games/slots.rs | 27 ++++++++++++++------------- 2 files changed, 16 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/bin/client/games/slots.rs b/src/bin/client/games/slots.rs index d664dbc..bc0a9b4 100644 --- a/src/bin/client/games/slots.rs +++ b/src/bin/client/games/slots.rs @@ -50,8 +50,8 @@ impl Game for SlotsGame { Match symbols to win!\n\ \n\ Payouts:\n\ - Three of a kind: 5x-100x bet\n\ - Two of a kind: 2x-20x bet\n\ + Three of a kind: 2x-28x bet\n\ + Two of a kind: 1x-3x bet\n\ \n\ Symbols: C=Cherry, L=Lemon, O=Orange, G=Grapes, D=Diamond, S=Seven\n\ \n\ diff --git a/src/bin/server/games/slots.rs b/src/bin/server/games/slots.rs index 3d285ef..04ac175 100644 --- a/src/bin/server/games/slots.rs +++ b/src/bin/server/games/slots.rs @@ -12,19 +12,20 @@ impl SlotsGame { let symbols = vec!['C', 'L', 'O', 'G', 'D', 'S']; let mut payouts = HashMap::new(); - payouts.insert("CCC".to_string(), 5); - payouts.insert("LLL".to_string(), 10); - payouts.insert("OOO".to_string(), 15); - payouts.insert("GGG".to_string(), 20); - payouts.insert("DDD".to_string(), 50); - payouts.insert("SSS".to_string(), 100); - - payouts.insert("CC".to_string(), 2); - payouts.insert("LL".to_string(), 3); - payouts.insert("OO".to_string(), 4); - payouts.insert("GG".to_string(), 5); - payouts.insert("DD".to_string(), 10); - payouts.insert("SS".to_string(), 20); + // Balanced payouts: EV = 210/216 ≈ 0.972 (2.8% house edge) + payouts.insert("CCC".to_string(), 2); + payouts.insert("LLL".to_string(), 3); + payouts.insert("OOO".to_string(), 5); + payouts.insert("GGG".to_string(), 8); + payouts.insert("DDD".to_string(), 14); + payouts.insert("SSS".to_string(), 28); + + payouts.insert("CC".to_string(), 1); + payouts.insert("LL".to_string(), 1); + payouts.insert("OO".to_string(), 1); + payouts.insert("GG".to_string(), 2); + payouts.insert("DD".to_string(), 2); + payouts.insert("SS".to_string(), 3); Self { symbols, payouts } } -- cgit v1.2.3