Re: Folding algorithm help.

2013-03-19 Thread rookie
On Tuesday, 19 March 2013 at 00:36:20 UTC, bearophile wrote: rookie: There were some interesting solutions for squares like: https://groups.google.com/forum/#!msg/comp.lang.ruby/lf4Zd9fvuYY/tjT2q65mcFAJ The Ruby code by Luke Blanshard converted to D: http://codepad.org/gtWDdRoJ Ruby is very

Re: Folding algorithm help.

2013-03-19 Thread rookie
On Tuesday, 19 March 2013 at 00:36:20 UTC, bearophile wrote: rookie: There were some interesting solutions for squares like: https://groups.google.com/forum/#!msg/comp.lang.ruby/lf4Zd9fvuYY/tjT2q65mcFAJ The Ruby code by Luke Blanshard converted to D: http://codepad.org/gtWDdRoJ Ruby is very

Re: Folding algorithm help.

2013-03-18 Thread bearophile
rookie: There were some interesting solutions for squares like: https://groups.google.com/forum/#!msg/comp.lang.ruby/lf4Zd9fvuYY/tjT2q65mcFAJ The Ruby code by Luke Blanshard converted to D: http://codepad.org/gtWDdRoJ Ruby is very flexible, and its multi-precision integers help avoid some bu

Re: Folding algorithm help.

2013-03-18 Thread Zz
On Monday, 18 March 2013 at 22:31:20 UTC, Ali Çehreli wrote: On 03/18/2013 02:20 PM, rookie wrote: > Hi, > > I was trying to do a folding algorithm in D and just got stuck on how to > approach the problem - I must be missing something (math). > > Given the following: > > 2 1 - Both folds are

Re: Folding algorithm help.

2013-03-18 Thread Ali Çehreli
On 03/18/2013 02:20 PM, rookie wrote: > Hi, > > I was trying to do a folding algorithm in D and just got stuck on how to > approach the problem - I must be missing something (math). > > Given the following: > > 2 1 - Both folds are from Left to Right - 1 is the fist fold > V V > 1 | 2 | 3

Folding algorithm help.

2013-03-18 Thread rookie
Hi, I was trying to do a folding algorithm in D and just got stuck on how to approach the problem - I must be missing something (math). Given the following: 2 1 - Both folds are from Left to Right - 1 is the fist fold V V 1 | 2 | 3 - - 3 Bottom to Up 4 | 5 | 6 result