private void PopulatePool() { for (var index = 0; index < AvailablePieces.All().Length; ++index) { pool.Add(index, numDuplicates); } pool.Shuffle(random); }
public Piece GetNextPiece() => AvailablePieces.All()[GetPopulatedPool()[0]];
public Piece GetPiece() => AvailablePieces.All()[GetPopulatedPool().TakeFirst()];