Chess960 by xnor

while 1: 
 for c,x in zip("NNQBB",[1030628>>n/96*2&3,18/(13-n/96)-1,n/16%6]+sorted([n%4*2+1,n/2&6])):s=s[:x]+c+s[x:]
 print s

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)


return to the top page