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); }
public DeckRegularDict <RegularSimpleCard> CardsLeft() => PileList.Where(items => items.Visible == true && items.IsSelected == false).Select(Items => Items.ThisObject).ToRegularDeckDict();