The code for the mate in two problem
As promised the used code in the Mate in two post.
<SCRIPT language='JavaScript' type='text/javascript'>
Game('8/p7/1N3K2/Qn3N2/2P1kp2/p3p3/2P1B2b/4n3 1',
'W_@@GP@DXRQ@_QAAXbQ@\\RAAXiQ@_CAA{qQ@_qAA{lQ@sjAA{jQ@qjAE{uQ@aXAE_?@A',
'{A mate in two problem. It is White\'s turn to move.
<br /><br />}1.Qa4
axb6 {<br /><br /> }( 1...Nd6 2.Qc6# )
{<br /> }( 1...Nd4 2.Nd6# ) {<br />
}( 1...Nc3 2.Qe8# ) {<br />
}( 1...Nxc2 2.Qxc2# ) {<br />
}( 1...Nf3 2.Bd3# ) {<br /> }(
1...Nd3 2.cxd3# ) {<br /> }( 1...Ng2 2.cxb5#
){<br /><br />}2.Qa8# 1-0',1,1,5,"Mate in two");</SCRIPT>
Most of the arguments of the Game function have been explained before. The last two arguments indicate the number of attempts (5) and the initial text below the chess board (Mate in two).
0 Comments
Post a Comment