|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
[Blackjack] RE: RE: Weird Money (Bug?)
Quote:
Ah.. I get it... Finally |
|
#17
|
|||
|
|||
|
[Blackjack] RE: Weird Money (Bug?)
It screws up card counters...
You don't actually ever get to see what the dealer has in this situation |
|
#18
|
|||
|
|||
|
[Blackjack] RE: Weird Money (Bug?)
*** Attn Matt ***
If you want a quick 'n' easy way to see a BlackJack plug in 1077223580 as a seed and set decks to 1 - these are the values for my little test. In hand 2 you'll be dealt a pair of aces, split them and you'll get a 10 + 8 (as described above) If you use 1077287692, again with 1 deck - this time your first hand is a BlackJack and it works as expected - we go straight to HANDOVER, get yer winnings and move on. It, therefore, appears as if PlayStand needs tweaking to take account of you getting a BlackJack _after_ the draw - only way it can happen of course is to draw and split a pair of 10,J,Q,K or A then get the missing card Might as well make it a little easier for you to see/fix/test |
|
#19
|
|||
|
|||
|
[Blackjack] RE: Weird Money (Bug?)
I've run a test myself with the next result
Array ( [status] => YOURTURN [activehand] => 0 [dealercards] => Array ( [0] => 9 ) [yourcards] => Array ( [0] => Array ( [0] => 1 [1] => 1 ) ) [money] => 1028 [currentbet] => 8 ) ... now i call playSplit(), then $result is: Array ( [status] => HANDOVER [activehand] => 2 [dealercards] => Array ( [0] => 9 [1] => 2 [2] => 1 [3] => 12 ) [yourcards] => Array ( [0] => Array ( [0] => 1 [1] => 13 ) [1] => Array ( [0] => 1 [1] => 11 ) ) [money] => 1060 [currentbet] => 8 ) I think i should have gained 8*2.5*2 = 40 money, but i gained 32, like a normal win. However, i didn't have to call playStand() so it looks like blackjack... Any clues? |
|
#20
|
|||
|
|||
|
[Blackjack] RE: Weird Money (Bug?)
In that case dealer went bust - in mine he didn't
Reckon that's why you went straight to handover and got the cash The cash you got was correct. You get your bet back + 1.5 x bet for each hand (which is what you got) Seems only to be stand that causes the problem then (not tried it with dealer going bust) |
|
#21
|
||||
|
||||
|
[Blackjack] RE: Weird Money (Bug?)
Quote:
How can the dealer be busted? I didn't stand! And though it were two blackjacks, i didn't get paid that way: Quote:
1060 - 1028 = 32 !== (8*2.5*2) .... so: a. Blackjack isn't paid right on a splitted hand. or b. You can't have blackjack on a splitted hand (but in that case someone has to call playStand() him/herself, so there's a bug there.) |
|
#22
|
|||
|
|||
|
[Blackjack] RE: Weird Money (Bug?)
You forgot to subtract the 8 off it cost you to split..
|
|
#23
|
|||
|
|||
|
[Blackjack] RE: Weird Money (Bug?)
Look at yer output - the dealer went bust
Says in the rules that whatever you do the dealer will _always_ play to get 17 or better He played after you got yer pair of Blackjacks and went bust The money is definitely right... At the beginning of this game you'll have had 1036, you staked 8 leaving you 1028 and a pair of aces You split the aces - costing you another 8 (16 bet so far - 8 + 8) leaving you 1020 You drew 2 face cards biving you a pair of blackjacks then dealer had a go and went bust You get your stake back (bringing you back up to 1036) and dealer pays you 12 each (stake + 50%) for the 2 blackjacks = 24 Total 1060 (did the calculation then checked your output - yup - it's correct) |
|
#24
|
|||
|
|||
|
[Blackjack] RE: Weird Money (Bug?)
Aargh.. i'm soooo stupid
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [Blackjack] Weird Money (Bug?) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|