Chess960 by rotary-o

#!ruby -p
n=eval$_
$_='RKR
'
([*[*0..4].combination(j=2)][n/96]+[n/16%6]+[n%4*2+1,n/4%4*2].sort).map{|i|$_[i,0]='NNBBQ'[j-=1]}

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