0
gamecards
i have here the cards and then shuffle but i have to give every card the value and the sort to play j =1 , q=2, k=3, A=4, 7=5, 8=6, 9=7, 10=8 and then the sort ,does anyone knews. I have to play alone the program does nothing https://code.sololearn.com/c0JvaxoBcW61/#cs
1 Answer
0
Hello,
here is the class Card. you have two constructors and so the program do nothing. after delete the one which was empty. the programm run.
class Card
{
protected Suits suit;
protected string cardvalue;
public Card(Suits suit2, string cardvalue2)
{
suit = suit2;
cardvalue = cardvalue2;
}
public override string ToString()
{
return string.Format("{0} of {1}", cardvalue, suit);
}
}