diff options
author | elioat <elioat@tilde.institute> | 2024-06-26 22:38:51 -0400 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-06-26 22:38:51 -0400 |
commit | d0cef1a0eb1b47acfdb281b9a6d78c461216d53d (patch) | |
tree | fad05a9058a6a84ba76d29494f9cd43ca8883a4e /awk | |
parent | 0dd5ddf867b61dcf871d826549cf8265ce178bc6 (diff) | |
download | tour-d0cef1a0eb1b47acfdb281b9a6d78c461216d53d.tar.gz |
*
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) } |