public string GetCard(model.Card a_card) { switch (_language) { case "S": if (a_card.GetColor() == model.Card.Color.Hidden) { return("Dolt Kort"); } else { return(String.Format("{0} {1}", GetCardColors()[(int)a_card.GetColor()], GetCardNumbers()[(int)a_card.GetValue()])); } default: return(String.Format("{0} of {1}", a_card.GetValue(), a_card.GetColor())); } }
public void DisplayCard(model.Card a_card) { System.Console.WriteLine("{0} of {1}", a_card.GetValue(), a_card.GetColor()); }
public void DisplayCard(model.Card a_card) { if (a_card.GetColor() == model.Card.Color.Hidden) { System.Console.WriteLine("Dolt Kort"); } else { String[] colors = new String[(int)model.Card.Color.Count] { "Hjärter", "Spader", "Ruter", "Klöver" }; String[] values = new String[(int)model.Card.Value.Count] { "två", "tre", "fyra", "fem", "sex", "sju", "åtta", "nio", "tio", "knekt", "dam", "kung", "ess" }; System.Console.WriteLine("{0} {1}", colors[(int)a_card.GetColor()], values[(int)a_card.GetValue()]); } }
public void DisplayCard(model.Card theCard) { Console.WriteLine("{0} of {1}", theCard.GetValue(), theCard.GetColor()); }
public void DisplayCard(model.Card a_card) { if (a_card.GetColor() == model.Card.Color.Hidden) { System.Console.WriteLine("Versteckte Karte"); } else { String[] colors = new String[(int)model.Card.Color.Count] { "Herzen", "Spaten", "Diamanten", "Kreuz" }; String[] values = new String[(int)model.Card.Value.Count] { "Zwei", "Drei", "Vier", "Fünf", "Sechs", "Sieben", "Acht", "Neun", "Zehn", "Bauer", "Dame", "König", "Ass" }; System.Console.WriteLine("{0} {1}", colors[(int)a_card.GetColor()], values[(int)a_card.GetValue()]); } }
public void CardDealt(model.Player a_player, model.Card a_card) { string player = (a_player.isDealer()) ? "Dealer" : "Player"; string card = (a_card.GetColor() == model.Card.Color.Hidden) ? "Hidden Card" : $"{a_card.GetValue()} of {a_card.GetColor()}"; Console.WriteLine($"{player} draws a : {card}"); Console.WriteLine("*pause*"); }