Esempio n. 1
0
 public static Pocket Create(Card card1, Card card2)
 {
     VerifyArg.NotNull(card1, nameof(card1));
     VerifyArg.NotNull(card2, nameof(card2));
     return(new Pocket(new List <Card>()
     {
         card1, card2
     }));
 }
Esempio n. 2
0
 public IReadOnlyList <Stats> ComputeStats(Table table)
 {
     VerifyArg.NotNull(table, nameof(table));
     return(ComputeStatsInternal(
                table.Pockets.Select(ToIndex).ToArray(), ToIndex(table.Community)));
 }
Esempio n. 3
0
 public ObjectPool(Func <TKey, TObject> factory)
 {
     VerifyArg.NotNull(factory, nameof(factory));
     mObjects = new Dictionary <TKey, TObject>( );
     mFactory = factory;
 }