示例#1
0
        public int EmptyPileCount()
        {
            var count = TreasureSupply.Count(pile => pile.Cards.Count == 0)
                        + VictorySupply.Count(pile => pile.Cards.Count == 0)
                        + KingdomSupply.Count(pile => pile.Cards.Count == 0);

            if (RuinsPile != null)
            {
                count += +RuinsPile.Cards.Count == 0 ? 1 : 0;
            }

            return(count);
        }