Is possibile to add a commando into the code for randomize the pieces of every board like chess960?
Yes, this is what the shuffle parameter does. For Chess960 you would say shuffle=KQR!BN , where the ! in front of the B indicates that the shuffle should keep the Bishops on different shade. All pieces mentioned in the shuffle parameter will be randomly placed in the set of squares they originally occupied. More complex restrictions of the shuffle can often be implemented by specifying several shuffles in a row (separated by a comma). For a complete explanation see the article on Interactive Diagrams, section 'Shuffle Games'.
Yes, this is what the shuffle parameter does. For Chess960 you would say shuffle=KQR!BN , where the ! in front of the B indicates that the shuffle should keep the Bishops on different shade. All pieces mentioned in the shuffle parameter will be randomly placed in the set of squares they originally occupied. More complex restrictions of the shuffle can often be implemented by specifying several shuffles in a row (separated by a comma). For a complete explanation see the article on Interactive Diagrams, section 'Shuffle Games'.