ericmichael / polyomino

Self-Assembly of Polyomino Tiles
3 stars 2 forks source link

Weighting Selection #13

Closed ericmichael closed 10 years ago

ericmichael commented 10 years ago

Making sure the random selection from the frontier is weighted by concentration.

ctchalk commented 10 years ago

weightedAddFromFrontier(); in Assembly.java works now; it needs to be used selectively when concentrations are available instead of addFromFrontier();

ctchalk commented 10 years ago

addFromFrontier(), weightedAddFromFrontier(), and countWeightedAddFromFrontier() have all been added and are used according to a TileSystem's weightOption variable (0 -> addFromFrontier, 1 -> weightedAddFromFrontier, 2 -> countWeightedAddFromFrontier() )