Пример #1
0
        //METHODS
        protected void ThrowAway(ThrowingStrategy strategy)
        {
            //Figures out the best way to throw away
            var best = GetOptimalThrow(strategy);

            foreach (var throwIndex in HelperFunctions.GetIndexComplement(_size, best))
            {
                //Mark the indices from the optimal throw as thrown
                MarkThrown(throwIndex);
            }
        }
Пример #2
0
 protected Card[] GetRest(int[] indices)
 {
     //Returns all cards not in the list of indices
     return(GetCards(HelperFunctions.GetIndexComplement(_size, indices)));
 }