- 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!!!??
Ken HPosted Jan 6, 2014, 3:31 AM
VulpesPosted Jan 5, 2014, 12:04 PM
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 HPosted Jan 4, 2014, 10:03 AM
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.
VulpesPosted Dec 27, 2013, 7:46 AM
http://visualstudiogallery.msdn.microsoft.com/049d2fe9-f845-48ae-a34d-acbded9f7e5a
Konstantin TarkusPosted Dec 27, 2013, 7:09 AM
https://github.com/koistya/Blackjack
Mahesh ChandPosted Sep 16, 2008, 8:54 AM
Here is an article and code on BlackJack in C#: