Beispiel #1
0
    public List <Card> StartTurnRequestCards(int playerId, int numberOfCommonCards, int numberOfPlayerCards)
    {
        if (turn.CurrentPlayerId != playerId)
        {
            return(new List <Card>());
        }

        Player player = GetPlayer(playerId);

        List <Card> cards = new List <Card>();

        cards.AddRange(commonDeck.DrawCards(numberOfCommonCards));
        cards.AddRange(player.deck.DrawCards(numberOfPlayerCards));

        turn.ChoosingCard(cards);

        return(cards);
    }