On 8 Gen, 10:09, Jesù¸ Gabriel y GaláÏ <jgabrielyga... / gmail.com> wrote: > # board = [] > # (0...(len)).each { board << [nil] * len } > > board = Array.new(len) {[nil]*len} > > free = [] > # setting all the free cells > # for i in (0...(len)) > # or j in (0...(len)) > # ree << [i, j] > # nd > # nd > > # Not in a single loop but I'd do: > 0.upto(len-1) {|i| 0.upto(len-1) {|j| free << [i,j]}} > > > board, free] > > end > > Jesus. Thanks a lot, with classes is much much better and cleaner http://pastie.textmate.org/private/hompwzt9vu5oz7dkwryrg Now I have to implement the decision engine and that's it, I could be satisfied. I wanted to try to use callcc for the decision tree (along with a normal backtrack stack), could it be a good idea?