Comment Comment by blixt I wanted to get a feel for the logic so I made a quick carbon copy in JavaScript with a simple UI to play with:https://codepen.io/blixt/pen/ayyjpZ parent blixt 9 years ago
https://codepen.io/blixt/pen/ayyjpZ