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 5th, 2004, 06:15 PM
oracle3410 oracle3410 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 oracle3410 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 oracle3410
[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?

Reply With Quote
  #2  
Old February 6th, 2004, 03:23 AM
Jeff321 Jeff321 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Near Chicago, IL, USA
Posts: 45 Jeff321 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to Jeff321
[Blackjack] RE: Does double include stand?

I believe after you PlayDouble the hand is over, so you shouldn't stand or hit.

Reply With Quote
  #3  
Old February 6th, 2004, 06:19 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Blackjack] RE: Does double include stand?

Jeff is correct, after PlayDouble it's MakeBet's turn

Reply With Quote
  #4  
Old February 7th, 2004, 03:41 PM
oracle3410 oracle3410 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 oracle3410 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 oracle3410
[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?

Reply With Quote
  #5  
Old February 7th, 2004, 08:14 PM
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: Does double include stand?

Quote:
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..


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.

Reply With Quote
  #6  
Old February 8th, 2004, 01:27 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
[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:
Original - php Code
  1.  
  2. //if you have more than 2 cards...
  3. if(count($mycards) > 2){
  4.   //then hit..
  5.   playhit();
  6. }else{
  7.   //if not double.
  8.   playdouble();
  9. }


hope this helps.

Reply With Quote
  #7  
Old February 8th, 2004, 12:12 PM
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: 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();
}
?>

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [Blackjack] Does double include stand?


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