N Queens by murky-satyr

v(gt).m.pe{|a|y=0
a.any?{|x|i=x
a[y+=1,7].any?{|v|v==i-=1or v==x*2-i}}or s a*?\s}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page