Ejemplo n.º 1
0
        public DeckRegularDict <RegularSimpleCard> GetSelectedCards()
        {
            var output = PileList.Where(items => items.IsSelected == true).Select(Items => Items.ThisObject).ToRegularDeckDict();

            if (output.Count > 2)
            {
                throw new BasicBlankException("Cannot have more than 2 selected.  Find out what happened");
            }
            return(output);
        }
Ejemplo n.º 2
0
 public DeckRegularDict <RegularSimpleCard> CardsLeft() => PileList.Where(items => items.Visible == true && items.IsSelected == false).Select(Items => Items.ThisObject).ToRegularDeckDict();