in reply to Re: The interesting problem of cookie dough placement.
in thread The interesting problem of cookie dough placement.

You're rushing things! :)

My first approach was:

  1. Randomly position N dots on the tray.
  2. Grow them in parallel, in steps, until one of them touches something -- an edge or another cookie.
  3. Move them half way into any adjacent space. Outer ones first towards the nearest edge(s). Inner ones toward the 'new edge' formed by a box 'drawn' inside the outer ones.
  4. goto step 2 if any of them are not touching in (at least) 4 places.
  5. end.

But, a) it is a pain to program; b) it runs like a dog.

My thoughts so far are summed up in this image.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re^2: The interesting problem of cookie dough placement.