Exemplo n.º 1
0
     public ImList <int>[] AllMoveOptions()
     {
         if (FirstRollResult == SecondRollResult)
         {
             return new []
                    {
                        ImList <int> .Create(Enumerable.Repeat(FirstRollResult, 4))
                    }
         }
         ;
         return(new []
         {
             ImList <int> .Create(FirstRollResult, SecondRollResult),
             ImList <int> .Create(SecondRollResult, FirstRollResult)
         });
     }
 }
Exemplo n.º 2
0
 public static ImList <T> ToImList <T>(this IEnumerable <T> @this)
 {
     return(ImList <T> .Create(@this));
 }