in reply to Challenge: 2D random layout of variable-sized rectangular units.

Not a very Perlish answer, but perhaps helpful to a fellow Perl user in real life:

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.




Forget that fear of gravity,
Get a little savagery in your life.
  • Comment on Re: Challenge: 2D random layout of variable-sized rectangular units.

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

    I already laid my patio this summer using 300x300 slate pavers. The problem came up whilst researching what to use, and I thought it interesting enough to consider it a perlish (going on) winter project.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Ah - good man.

      Of course, once it's developed, you could always sell this program to the paver company for them to use as a marketing tool....




      Forget that fear of gravity,
      Get a little savagery in your life.