public Game() { RoundsList = new List<Round>(); DeckService = new DeckService(); Human = new Player("Human"); Computer = new Player("Computer"); }
public void TakeNCardsAndUpdateTotalScore(DeckService deckService, int countCard) { for (var i = 0; i < countCard; i++) { var card = deckService.GetFirstCard(); _player.PlayerCards.Enqueue(card); _player.TotalScoreOnCards += card.CardValue; } }
public Round(DeckService deckService,Player human,Player computer) { CounterRound = 0; Human = human; Computer = computer; RoundService = new RoundService(deckService,this); Winner = "Nobody"; Loser = "Nobody"; }
public void ShowAllCardsInDeck(DeckService deckService) { Console.Clear(); var counterCards = 0; foreach (var card in deckService) { Console.WriteLine("{0}. {1}:{2} - {3}", ++counterCards, card.CardName, card.CardSuit, card.CardValue); } }
public AskBeforeNewRound(DeckService deckService) { _printInfo = new PrintInfo(); _deckService = deckService; }
public AskDuringRound(DeckService deckService,Player human) { _deckService = deckService; _human = human; }