Posted: 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
StarGateSG-1
Posted: 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
Posted: 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
Posted: 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.
Posted: 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.