Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Black Jack In Turing
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kayume




PostPosted: Mon May 16, 2005 11:05 am   Post subject: Black Jack In Turing

Ack! How do you account for the cards already drawn from the deck? I see a lot of games of 21 and none of them take into account that once a specific card is drawn is can't be drawn again. HELP!!!
Sponsor
Sponsor
Sponsor
sponsor
StarGateSG-1




PostPosted: Mon May 16, 2005 11:08 am   Post subject: (No subject)

look In turing help first it will answer your problems!
Try looking at records and unions
Tony




PostPosted: Mon May 16, 2005 8:14 pm   Post subject: (No subject)

you make a deck -- a list (array) of 52 cards, randomly sorted. Then you draw cards one by one in order.
kayume




PostPosted: Tue May 17, 2005 10:36 am   Post subject: (No subject)

thnx tony, didn't try it yet, but its better than "check the help file" but it turns out my teacher doesn't care for that so here's a link for my blackjack testing grounds.


Testing Grounds.t
 Description:
Testing Grounds for Blackjack

Download
 Filename:  Testing Grounds.t
 Filesize:  5.16 KB
 Downloaded:  148 Time(s)

StarGateSG-1




PostPosted: Tue May 17, 2005 10:58 am   Post subject: (No subject)

Nice it looks good but you need to deal 2 cards at start, and if you draw five crads wihtout bust you win. In a Tie the dealer always win's!
A few other things I really recommend that you put in the extra mile and include only one card of each. It may not be required but If you wnat to be a good programer you have to take the next step above everyone else.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: