Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #16  
Old February 20th, 2004, 09:19 AM
Reggino Reggino is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Wijk aan Zee, The Netherlands
Posts: 16 Reggino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Reggino
[Blackjack] RE: RE: Weird Money (Bug?)

Quote:
... I've got A+8 and a BJ, can't see dealer quite yet

At this point state _should_ be HANDOVER but it's actually YOURTURN ....


Ah.. I get it... Finally ... Indeed that's a bug.(another `bug` than the one Basseq meant, but indeed a bug). Great work! Matt can you fix the lib?

Reply With Quote
  #17  
Old February 20th, 2004, 09:26 AM
tchala tchala is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, UK
Posts: 59 tchala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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

Reply With Quote
  #18  
Old February 20th, 2004, 01:57 PM
tchala tchala is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, UK
Posts: 59 tchala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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


Reply With Quote
  #19  
Old February 21st, 2004, 12:58 PM
Reggino Reggino is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Wijk aan Zee, The Netherlands
Posts: 16 Reggino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Reggino
[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?

Reply With Quote
  #20  
Old February 21st, 2004, 02:20 PM
tchala tchala is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, UK
Posts: 59 tchala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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)

Reply With Quote
  #21  
Old February 22nd, 2004, 03:41 PM
Reggino Reggino is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Wijk aan Zee, The Netherlands
Posts: 16 Reggino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Reggino
[Blackjack] RE: Weird Money (Bug?)

Quote:
In that case dealer went bust - in mine he didn't
Reckon that's why you went straight to handover and got the cash

How can the dealer be busted? I didn't stand! And though it were two blackjacks, i didn't get paid that way:

Quote:
The cash you got was correct. You get your bet back + 1.5 x bet for each hand (which is what you got)


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.)

Reply With Quote
  #22  
Old February 22nd, 2004, 03:44 PM
FryGuy1013 FryGuy1013 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Antelope, Ca
Posts: 45 FryGuy1013 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to FryGuy1013 Send a message via AIM to FryGuy1013 Send a message via Yahoo to FryGuy1013
[Blackjack] RE: Weird Money (Bug?)

You forgot to subtract the 8 off it cost you to split..

Reply With Quote
  #23  
Old February 22nd, 2004, 05:34 PM
tchala tchala is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Manchester, UK
Posts: 59 tchala User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[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)

Reply With Quote
  #24  
Old February 22nd, 2004, 06:13 PM
Reggino Reggino is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Wijk aan Zee, The Netherlands
Posts: 16 Reggino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Reggino
[Blackjack] RE: Weird Money (Bug?)

Aargh.. i'm soooo stupid indeed, thanks you both!

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [Blackjack] Weird Money (Bug?)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT