CSharp Simple BlackJack game Also known as 21. Two players (the user and computer) play against each...

60.1K

Verified Solution

Question

Programming

CSharp Simple BlackJack game

Also known as 21. Two players (the user and computer) playagainst each other. They are drawing poker cards in order to •Makethe added rank (score) as close as to 21, but without going over21.•And make the added score larger than the opponent’s.−Eachplayer starts with two random cards. −Then ask the user if one morecard until the user is satisfied with his/her total score. If theuser’s total score gets 21, announce the user win.−If the userdoesn’t want any more cards, the computer starts play. The computermust draw cards until it has a total score that beats the user. Ifthe computer’s total score goes over 21, it loses.

Make this game look nice. Clear the console at effective timesso the screen doesn’t get cluttered but the total scores for boththe user and the computer are easily seen.−For simplicity, makeassumptions: 1) draw with replacement; 2) Ace = 1 point,Jack=Queen=King=10 points.−Again, after one round, your game shouldask the user if s/he wants another round. If no, program ends.

I don't even know where to begin. In the lectures we used and for / for each commands. Help much needed!

Answer & Explanation Solved by verified expert
3.8 Ratings (378 Votes)
Please find the below code in C for a game of BLACKJACK I have also included comments in the code for better understanding using System namespace BlackjackGame class Blackjack static string playerCards new string11 this string is to store the    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students