Example #1
0
        public async Task <bool> PushCard(Player first, ICard card, ICollection <ICardRequirement> requirements)
        {
            // check if card is in player's stack but not their deck
            if (first.Deck.Contains(card) || !first.Stack.Contains(card))
            {
                return(false);
            }

            // add to the card store
            await _db.AddToStore(first, card, requirements);

            await Update();

            return(true);
        }