示例#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()];