Draw fences by dianne

(&)=zip
s=' '
x%c=(c:x)&(x++[c])
(a:x)#y=a:y#x;x#_=x
x?c=[last$s:[max a b|c<',']++[c|a/=b,a>s,b>s]|(a,b)<-x]
v y=y%'~'?'|'
f x=[v u&v d?s&(h%s?s)?'+'#h|(u,d)<-x%cycle"~",h<-[u&d?'-']]#[v y#y|y<-x]
main=interact$unlines.f.lines

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page