public Player(string playerName_, CardDeck cardDeck_, bool computer_ = false) { playerName = playerName_; playerScore = 0; playerKarts = new List<Kart>(); computer = computer_; countWinGame = 0; }
public Game() { allPlayers = new Queue<Player>(); countGame = 0; cardDeck = new CardDeck(); allPlayers.Enqueue(new Player("Игрок", cardDeck)); // сразу ходит игрок allPlayers.Enqueue(new Player("Komputer", cardDeck, true)); playGame(); }
public void TakeKart(CardDeck cd) { playerKarts.Add(cd.getNextKart()); playerScore += playerKarts[(playerKarts.Count - 1)].Score; }