{
Random random = new Random();
return random.Next (2, 15);
}
public static int DisplayCard()
{
int card = " ";
if (card = 14)
card = "Ace";
if (card = 13)
card = "King";
if (card = 12)
card = "Queen";
if (card = 11)
card = "Jack";
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
FroglegPosted May 8, 2011, 4:02 AM
public static int DisplayCard()
{
int card = " ";
string _card;
if (card = 14)
_card = "Ace";
if (card = 13)
_card = "King";
if (card = 12)
_card = "Queen";
if (card = 11)
_card = "Jack";
Have a search on the site for a better way of setting up card game
Vilas GitePosted May 8, 2011, 3:55 AM
Please open below link which is recommended articles by Mindcrackers. :)
http://www.c-sharpcorner.com/UploadFile/puranindia/506/
hopes it will solve your prob.