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:
  #1  
Old February 17th, 2004, 11:40 AM
raphpell raphpell is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: BOZEL
Posts: 5 raphpell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[Blackjack] why the dealer push then the player is busted?

I create a test page and display this:
the dealer push then the player is busted!

Can you made a new version of the library ?
we must use
!isBust($__gamestate["playercards"]) in GetGameState()...

Reply With Quote
  #2  
Old February 17th, 2004, 01:06 PM
raphpell raphpell is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: BOZEL
Posts: 5 raphpell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[Blackjack] RE: why the dealer push then the player is busted?

in GetGameState()we must change :
php Code:
Original - php Code
  1.  
  2. $nomorecards=0;
  3. while (true) {
  4.    $shouldhit=0;

with :
php Code:
Original - php Code
  1.  
  2. $nomorecards=0;
  3. while (true and (isBust($__gamestate["playercards"]))) {
  4.    $shouldhit=0;

Reply With Quote
  #3  
Old February 18th, 2004, 07:31 AM
Psyn0c Psyn0c is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Cape Town, South Africa
Posts: 16 Psyn0c User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Psyn0c
[Blackjack] RE: why the dealer push then the player is busted?

Quote:
why the dealer push then the player is busted?


I'm not entirely sure what you are asking.
Do you mean why does the dealer keep playing when he knows that the player has busted?

Well, if you check the rules:
Quote:
If you go over 21 points, you "bust". After you're done, the dealer must hit until he has 17 points or more. If both you and the dealer bust, the hand is a tie. If one busts, and the other doesn't, the other player wins. If neither you nor the dealer busts, the one that has more points wins.


So if you bust, there is still a chance you will not lose, ie you can the game can be tied.

I don't know about you, but I certainly don't want this rule to be taken out.

Reply With Quote
  #4  
Old February 18th, 2004, 12:47 PM
raphpell raphpell is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: BOZEL
Posts: 5 raphpell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
[Blackjack] ...

Well, I've tested with the miniplay code and we won more ... no comment ...

But another question : Must we implement some function to know if we 'can surrender','can split' or you will do it?



Reply With Quote
  #5  
Old February 18th, 2004, 02:22 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: ...


Quote:
Well, I've tested with the miniplay code and we won more ... no comment ...

But another question : Must we implement some function to know if we 'can surrender','can split' or you will do it?




Come on... that's not so hard....

Reply With Quote
  #6  
Old February 28th, 2004, 04:50 PM
crawdaddy crawdaddy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 crawdaddy 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 crawdaddy Send a message via AIM to crawdaddy
[Blackjack] RE: why the dealer push then the player is busted?

I think the purpose of the push when both players bust is to skew standard basic strategy, otherwise this would just be a lesson in plugging in your favorite basic strategy into php and applying rudimentary card counting methods. Since this swings the odds towards the player (chances of you getting your money back even though you lose are great), it may be wise, if the card count is high and the chances of you winning if you stand are slim to hit and stand if you didn't bust since the count is still high and chances of the dealer busting are better. There's some strategy implied in that run-on sentence there, but I'm not going to give away everything ;)

Reply With Quote
  #7  
Old February 28th, 2004, 05:47 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: why the dealer push then the player is busted?

It's the same bug me and reggie were talking about last week (see thread odd money boug)

The thing is that although Matt ain't fixed it we're all playing on common ground

Well, almost...If the winner is withing say 50 points then there is a case for argument unless Matt gives us a new lib beforehand

I have nothing but respect for Matt. OK, a bug hit this month's compo. We ain't conna villify him for it thou are we. Matt gives us interesting challanged. To my mind - keep it going, I can work aroiunf the odd bufg


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [Blackjack] why the dealer push then the player is busted?


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 5 hosted by Hostway
Stay green...Green IT