Chess960 by rotary-o

#!ruby -p
n=eval$_
$_='RKR
'
c='\x07\x0e\x15\x1c\x0f\x16\x1d\x17\x1e\x1f'[n/96]
%w(N N Q B B).zip([c%7,c/7,n/16%6]+[n%4*2+1,n/4%4*2].sort){|s,i|$_[i,0]=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)

download

return to the top page