Пример #1
0
 private void PopulatePool()
 {
     for (var index = 0; index < AvailablePieces.All().Length; ++index)
     {
         pool.Add(index, numDuplicates);
     }
     pool.Shuffle(random);
 }
Пример #2
0
 public Piece GetNextPiece() => AvailablePieces.All()[GetPopulatedPool()[0]];
Пример #3
0
 public Piece GetPiece() => AvailablePieces.All()[GetPopulatedPool().TakeFirst()];