Created
July 20, 2014 18:17
-
-
Save Evsenev/58863693bb142363bcf0 to your computer and use it in GitHub Desktop.
Хочу чтобы не цифры отображались а название карты J (Валет) Q(Дама) K(Король) A(Туз)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ShowCards (Opponent WhosePack) | |
{ | |
if (WhosePack == Opponent.Player) { | |
Console.WriteLine ("\nВаши карты:"); | |
for (int i = 0; i < PlayerPack.Count; i++) { | |
if (36 < i && i <= 40) { | |
Console.Write ("\tJ"); | |
} | |
else if (40 < i && i <= 44) { | |
Console.Write ("\tQ"); | |
} | |
else if (44 < i && i <= 48) { | |
Console.Write ("\tK"); | |
} | |
else if (i > 48) { | |
Console.Write ("\tA"); | |
} | |
else | |
Console.Write ("\t{0} ", PlayerPack [i].card_score); | |
if (PlayerPack [i].CardColor == Color.Clubs) | |
Console.Write ("♣"); | |
if (PlayerPack [i].CardColor == Color.Spades) | |
Console.Write ("♠"); | |
if (PlayerPack [i].CardColor == Color.Hearts) | |
Console.Write ("♥"); | |
if (PlayerPack [i].CardColor == Color.Diamonds) | |
Console.Write ("♦"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment