Jump to content
  • Advertisement
Sign in to follow this  
Ibuku

BlackJack

This topic is 5056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone ever made a Blackjack game? Had a question... How do you handle an Ace in computer blackjack. What sort of logic do you put in so the program knows whether to use 1 or 11? Whats the best way? Also, is there a max that the dealer is allowed to draw (say he draws a 2, 2, 2, 2, 4, 4, etc. (not yet reaching 17 or 21).

Share this post


Link to post
Share on other sites
Advertisement
The ace part shouldn't be too bad. Start by counting the A as 11. If the player/dealer busts, subtract 10 and just count the A as a 1.

Dealer card max is a personal choice. Some casinos will give the player a bonus if they hit a 5 card hand. Never heard of anything like that for the dealer.

cyn

Share this post


Link to post
Share on other sites
The standard practice in a casino is that a dealer will "draw 16", that is, they will draw (twist, hit, whatever you call it) if they have 16 or less on show. They hold (stick, stay) on 17 or above. This is regardless of what players may hold or whether the dealer will win. In blackjack, there is no bonus, penalty or limit on the number of cards drawn.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!