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

9th Mar 2018, 3:40 PM
Abd Allah Abd Alkader
Abd Allah Abd Alkader - avatar
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); } }
5th Apr 2018, 5:59 AM
Jan Baier