Use Macro and Advanced Techniques and Efficiencies only
Question: Queens puzzle.
The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other. Thus, a solution requires that no two queens share the same row, column, or diagonal. The eight queens puzzle is an example of the more general n queens problem of placing n nonattacking
queens on an n×n chessboard.
Write a macro to find ONE solution of n queens problem:
1. Create a macro called queen with one parameter which is the size of the chessboard;
a. Macro call by %queen(n);
2. Create a TEMPORARY dataset called QUEENn (figure 3 & 4) to store the result of chess placed;
a. Create n variables to store the puzzle;
b. Place the chess randomly;