Forums - C# Corner

Forum guidelines

Basic C# blackjack game

Sep 15 2008 12:16 AM
Hi, I'm new to C#...very new and am having tons of problems with my second project...we are to make a simple c# blackjack game and the rules are this:
  • Dealerdraws two cards
  • Userdraws two cards
  • Usercan choose to hit (draw another card) or stay
  • Ifuser chooses to hit, then the user draws another card
  • Thedealer will draw another card if his point total is < 17
  • Thewinner is the closest to 21 points without going over
  • Ifboth the user and dealer go over 21 points, there is no winner
  • If theuser and dealer tie (for 21 points or less), the user wins
It is supposed to look like this:
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!!!??


Answers (6)

Join a Chapter

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.