Okay I see that. So instead should I use the cardShuffle(); method that I created and call to it twice?
card[0] = cardShuffle();
card[1] = cardShuffle();
static int cardShuffle()
{
int randomCard;
Random random = new Random();
randomCard =...
So this is the code for drawing and displaying the cards, The problem I have here (Line 31) Is that every time a new card is drawn after the first two id have to program each card[2], card[3],.... and Im trying to see If I can automate the process so the player can essentially have an infinite...
The one specific thing I have an issue with is displaying the list items. After the cards are drawn the console reads out what number the cards are (1-13) and what the sum of the cards are. My main issue is figuring out how to make the function scale to include all cards drawn.
When the player...
Im developing a Blackjack Card game in C#, when you play you and the dealer each get 2 cards (card1 card2). I've been trying to figure out how when I input the "hit" command it will deal another random card (card3), and keep drawing cards. Im very new to c# still
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.