in reply to Challenge: 2D random layout of variable-sized rectangular units.
If this an actual real-life project in your backyard, I would just make a point of buying from a store that takes returns. Choose 5 or 6 sizes and buy approximately equal surface areas of each size to equal patio size + ~20%. Lay them out randomly following the rules. You'll spend less time, and get more exercise, working it out on your hands and knees in real time than you'll spend writing a progrma that produces a set of coordinates that almost noone can actually follow. Then, use the time you've saved to enjoy your new patio with your kids.
Like I said, not Perlish, but Perl-coders' real lives are more important than Perl itself. Call me crazy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Challenge: 2D random layout of variable-sized rectangular units.
by BrowserUk (Patriarch) on Sep 03, 2006 at 15:18 UTC | |
by punch_card_don (Curate) on Sep 03, 2006 at 16:34 UTC |