Generate Chess960 starting position: Difference between revisions

Content added Content deleted
(→‎{{header|Raku}}: Add from-spid option.)
Line 1,643: Line 1,643:
}
}
return @array;
return @array;
}
}</lang>

# demo code
say chess960(518); #standard optning position
say chess960; # (it happened to pick #300)</lang>

{{Out}}
<pre>♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
♛ ♝ ♞ ♜ ♚ ♜ ♝ ♞</pre>


=={{header|REXX}}==
=={{header|REXX}}==