Jump to content

Generate Chess960 starting position: Difference between revisions

(→‎{{header|Raku}}: Add from-spid option.)
Line 1,643:
}
return @array;
}
}</lang>
 
# demo code
say chess960(518); #standard optning position
say chess960; # (it happened to pick #300)</lang>
 
{{Out}}
<pre>♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
♛ ♝ ♞ ♜ ♚ ♜ ♝ ♞</pre>
 
=={{header|REXX}}==
1,480

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.