#!ruby -p0 20.times{|d|$_.reverse! gsub(/x|\.(?=(|.{10})#{d/2-1})/m){d/2}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page