Generate random chess position: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added wording to the REXX section header.)
Line 1,804: Line 1,804:
If the number of chessboards specified is negative, then the number of chess pieces for each side will be random.
If the number of chessboards specified is negative, then the number of chess pieces for each side will be random.


This version also allows any number of chessboards to be displayed.
This version also allows any number of chessboards to be displayed   (the default is to only display one chessboard).
<lang rexx>/*REXX program generates a chess position (random pieces & positions) in a FEN format.*/
<lang rexx>/*REXX program generates a chess position (random pieces & positions) in a FEN format.*/
parse arg seed CBs . /*obtain optional arguments from the CL*/
parse arg seed CBs . /*obtain optional arguments from the CL*/