cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How can I incorporate an ace switch func
How can I incorporate an ace switch function for a blackjack program?
May 14, 2012 at 12:28am UTC
Gregory Sakas
(72)
You know when you are playing blackjack and if you draw an ace, it can be counted as 11 or 1 depending on whether you pass 21 or not? How can I code that into a program? I don't need the code, I just need to know how to go about it. Please help.
May 14, 2012 at 12:37am UTC
slicedpan
(155)
If the current value is greater than 10, then it is a one, if not then it is 11.
Topic archived. No new replies allowed.