diff options
Diffstat (limited to 'awk')
-rw-r--r-- | awk/nqueens.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/awk/nqueens.awk b/awk/nqueens.awk index 642fc42..a426537 100644 --- a/awk/nqueens.awk +++ b/awk/nqueens.awk @@ -26,7 +26,7 @@ function print_board(board, N) { function solve(board, row, N) { if (row > N) { - # Print the board configuration when a solution is found + # Display the state of the board when a solution is found print_board(board, N) return } @@ -40,6 +40,6 @@ function solve(board, row, N) { } BEGIN { - N = 10 # Change this value for different board sizes + N = 10 # Sets the size of the board solve(board, 7, N) } |