Beispiel #1
0
 public Player(int index)
 {
     this.index = index;
     hand = new List<Card>();
     unknownCards = new Deck();
     score = 0;
 }
Beispiel #2
0
 public Player(int index, List<Card> hand, Deck unknownCards, int score)
 {
     this.index = index;
     this.hand = hand;
     this.unknownCards = unknownCards;
     this.score = score;
 }
Beispiel #3
0
        public GameState()
        {
            players = new Player[4];

            for (int i = 0; i < 4; i++)
                players[i] = new Player(i);

            Deck deck = new Deck();
            deck.distribute(players, 0);
            turnIndex = getFirstPlayer();
            trick = new Card[4];
            leadSuit = Suit.None;
            cardsPlayedInTrick = 0;
        }