Generate Chess960 starting position: Difference between revisions
Generate Chess960 starting position (view source)
Revision as of 00:41, 11 September 2021
, 2 years ago→From Starting Position ID Number (SPID)
(→{{header|Raku}}: Add from-spid option.) |
|||
Line 1,643:
}
return @array;
}
# demo code
say chess960(518); #standard optning position
say chess960; # (it happened to pick #300)</lang>
{{Out}}
<pre>♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
♛ ♝ ♞ ♜ ♚ ♜ ♝ ♞</pre>
=={{header|REXX}}==
|