我弟弟即将满21岁了,我和父母想带他去拉斯维加斯旅游。在我自己的21岁生日时,我带了200美元去赌场,最终从掷骰子游戏中赚了约450美元。这次旅行我打算再次带上200美元,并在出发前进行一些掷骰子模拟,以查看能否再次翻倍。
我从多个来源了解到,在掷骰子游戏中,当放置一个最大赔率的通过线下注时,庄家优势最小。按照我的记忆,并根据Wizard of Odds的调查,大多数沿着赌场大道的赌场都是3-4-5的赔率,最低下注额为5美元。考虑到这些因素,以下是一个PHP掷骰子游戏(100次掷骰子)的模拟结果:
<?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/>';
}
?>
我的数学有什么问题吗?虽然在每个会话期间都会出现高峰和低谷,但这个模拟更经常在破产之前使其资金翻倍。考虑到在 Craps 游戏中庄家总是占优势,即使只有一小部分的百分比,我对此结果感到困惑。
odds = std::min( cash - bet_k, bet_k * 3);
而不是odds = std::min(cash, bet_k * 3);
- ghoppe