Exemple #1
0
 public Player(string playerName_, CardDeck cardDeck_, bool computer_ = false)
 {
     playerName = playerName_;
     playerScore = 0;
     playerKarts = new List<Kart>();
     computer = computer_;
     countWinGame = 0;
 }
Exemple #2
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();
 }
Exemple #3
0
 public void TakeKart(CardDeck cd)
 {
     playerKarts.Add(cd.getNextKart());
     playerScore += playerKarts[(playerKarts.Count - 1)].Score;
 }
Exemple #4
0
 public void TakeKart(CardDeck cd)
 {
     playerKarts.Add(cd.getNextKart());
     playerScore += playerKarts[(playerKarts.Count - 1)].Score;
 }