i=31 while i:s="%12s "%[str,raw_input][i%2]();B=2;exec"B*=2;c=cmp(abs(i%B*2-B)*2,B);s+='- '[c]*7+['+ |'[c],'+------- winner!'][B+i==48];"*4;print s.rstrip();i-=1
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page