|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[Blackjack] Does double include stand?
does PlayDouble() include a PlayStand() or do we have to do that ourselves?, and if we hit, take the penalty of the maxmumbet?
|
|
#2
|
|||
|
|||
|
[Blackjack] RE: Does double include stand?
I believe after you PlayDouble the hand is over, so you shouldn't stand or hit.
|
|
#3
|
|||
|
|||
|
[Blackjack] RE: Does double include stand?
Jeff is correct, after PlayDouble it's MakeBet's turn
|
|
#4
|
|||
|
|||
|
[Blackjack] RE: Does double include stand?
hmm. that's strange, because i played a double, and it just kept looping as if the hand was still going on, but when i added a stand after the double, it acted correctly.. are we sure?
|
|
#5
|
|||
|
|||
|
[Blackjack] RE: Does double include stand?
Quote:
There might be something wrong with your script, oracle. If you take a look at the end of the PlayStand() function in blackjacklib, you'll see the code: Code:
$__gamestate["currenthand"]++; This code signals the end of the hand. Now take a look at the end of the PlayDouble function, you'll see the exact same piece of code, meaning that PlayDouble does end the hand. Do you double after you split? The rules state that you can only double IMMEDIATELY after makebet(), else you get penalised the maximumbet amount. I think this could be your problem. |
|
#6
|
|||||
|
|||||
|
[Blackjack] RE: Does double include stand?
one problem i had with playdouble() was that it would not end a hand if i had already hit(before i added a check to make sure i had only 2 cards). it would just penalize me and then loop untill it took all my money. you might need to add something like:
php Code:
hope this helps. |
|
#7
|
|||
|
|||
|
[Blackjack] RE: Does double include stand?
Thanks to Anynomous, but this would be more correct
Code:
$state = Makebet($bet);
.....
.....
//if you have do not have 1 hand (ie you split sometime after Makebet()) or have more than 2 cards...
if(count($state['yourcards']) != 1 || count($mycards) > 2){
//then hit..
playhit();
}else{
//if not double.
playdouble();
}
?>
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [Blackjack] Does double include stand? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|