Ejemplo n.º 1
0
 /// <summary>
 /// Prints the field to Console.Out
 /// </summary>
 public void DumpToConsole()
 {
     var toprow = FinishStacks.Cast<CardStack>()
         .Concat(new[] { Stock });
     DumpRows(toprow);
     DumpRows(PlayStacks.ToArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets valid destination stacks, from least to most likely to lead to a solution
 /// </summary>
 /// <returns></returns>
 public IEnumerable<CardStack> GetDestinationStacks()
 {
     return PlayStacks.Cast<CardStack>()
         .Concat(FinishStacks.Cast<CardStack>());
 }