- Dealer draws two cards
- User draws two cards
- User can choose to hit (draw another card) or stay
- If user chooses to hit, then the user draws another card
- The dealer will draw another card if his point total is < 17
- The winner is the closest to 21 points without going over
- If both the user and dealer go over 21 points, there is no winner
- If the user and dealer tie (for 21 points or less), the user wins
Dealer has:
ace of spades
2 of hearts
Dealer Total:
You have:
......
.......
Your Total:
Enter (h)it or (s)tay:
You Draw:
Dealer Draws:
Dealer Total
Your total
winner
can anyone show me how to do this or give some help PLEASE!!!??

Mahesh ChandRank #1 · 393.4K reputationPosted Sep 16, 2008, 4:54 AM EDT
Here is an article and code on BlackJack in C#:
Konstantin Tarkus7 reputationPosted Dec 27, 2013, 2:09 AM EST
https://github.com/koistya/Blackjack
VulpesRank #55 · 29.2K reputationPosted Dec 27, 2013, 2:46 AM EST
http://visualstudiogallery.msdn.microsoft.com/049d2fe9-f845-48ae-a34d-acbded9f7e5a
Ken HRank #2,315 · 610 reputationPosted Jan 4, 2014, 5:03 AM EST
Can you explain the following bold What does this mean(What does it do)?
private BlackJackGame game = new BlackJackGame(Properties.Settings.Default.InitBalance);
Thank for you.
VulpesRank #55 · 29.2K reputationPosted Jan 5, 2014, 7:04 AM EST
The Properties.Settings.Default object exposes all the default settings for the project. In this case the value of a setting called 'InitBalance' is being passed to the BlackjackGame constructor when creating a new game.
I don't have the code for this game to hand but I'd imagine that InitBalance represents the player's initial balance (i.e stake) at the start of the game.
Ken HRank #2,315 · 610 reputationPosted Jan 5, 2014, 10:31 PM EST