本文介绍了骰子赔率:模拟掷骰子游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我弟弟再过几周就 21 岁了,我和我的父母要带他去拉斯维加斯.21 岁那年,我带了 200 美元去维加斯赌博,然后带着大约 450 美元回家,主要是玩掷骰子.我打算为这次旅行再次携带 200 美元,在我去之前,我想我会进行一些掷骰子模拟,看看我是否可以再次将我的钱翻倍.

My brother turns 21 in a couple of weeks and my parents and I are taking him to Las Vegas. For my 21st, I brought $200 to gamble in Vegas and came home with around $450, mostly from playing craps. I plan on bringing $200 again for this trip and before I go I thought I'd run some craps simulations to see if I can double my money again.

我从多个来源了解到,在以最大赔率进行过线下注时,赌场在掷骰子方面的优势最小.根据我的记忆,根据 Wizard of Odds 的调查,拉斯维加斯大道上的大多数赌场都是 3-4-5 赔率,最低 5 美元.考虑到这一点,这里是在 PHP 中模拟掷骰子会话(100 个骰子):

I've read from several sources that the house has the smallest advantage in craps when placing a passline bet with maximum odds. From my memory, and as surveyed by Wizard of Odds, most casinos on the Strip are 3-4-5 odds with a $5 minimum. Taking this into account, here is a simulation of a craps session (of 100 dice rolls) in PHP:

<?php

$stash = 200;
$bet = 5;

for($i=100; $i--;) {

    $dice1 = mt_rand(1, 6);
    $dice2 = mt_rand(1, 6);
    $total = $dice1 + $dice2;

    if(!$button) {
        if($total===7 || $total===11) {
            $stash += $bet;
        }
        elseif($total===2 || $total===3 || $total===12) {
            $stash -= $bet;
        }
        else {
            $button = $total;
            if($total===4 || $total===10) {
                $odds = $bet*3;
            }
            elseif($total===5 || $total===9) {
                $odds = $bet*4;
            }
            elseif($total===6 || $total===8) {
                $odds = $bet*5;
            }
        }
    }
    else {
        if($total===7) {
            $button = 0;
            $stash -= ($bet + $odds);
        }
        elseif($total===$button) {
            $button = 0;
            $stash += $bet;
            if($total===4 || $total===10) {
                $stash += $odds*2/1;
            }
            elseif($total===5 || $total===9) {
                $stash += $odds*3/2;
            }
            elseif($total===6 || $total===8) {
                $stash += $odds*6/5;
            }
        }
    }

    echo 'Stash: $'.$stash.'<br/>';

}

?>

我的数学有什么问题吗?虽然每次交易都有高峰和低谷,但这种模拟更经常在破产之前将其资金翻倍.考虑到房子在掷骰子方面总是有优势,即使只有百分之一,我对这个结果感到困惑.

Is there anything wrong with my math here? While there are peaks and troughs throughout each session, this simulation more often doubles its money before going broke. Considering the house always has the edge in craps, even if it's just a fraction of a percent, I'm perplexed by this result.

推荐答案

好吧,马上,我可以看到您在简单的 7 或 11 获胜案例中遇到了错误:您应该赢得您的下注,而不是下注的两倍.

Well, right off the bat, I can see that you've got an error in the simple 7 or 11 win case: You're supposed to win your bet, not twice your bet.

我相信赔率投注的支出与实际概率相称.您掷出 7(输掉赔率)的可能性是 10 的两倍,因此当您以 4 或 10 获胜时,您应该获得 2:1 的赔率;并且只有在您赢得 6 或 8 时才支付 6:5.

I believe the payout for the odds bet is commensurate with the actual probability. You are twice as likely to roll 7 (lose your odds) than 10, so you should get paid 2:1 when you win on a 4 or 10; and only paid 6:5 when you win on a 6 or 8.

这篇关于骰子赔率:模拟掷骰子游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 16:20