From d0cef1a0eb1b47acfdb281b9a6d78c461216d53d Mon Sep 17 00:00:00 2001 From: elioat Date: Wed, 26 Jun 2024 22:38:51 -0400 Subject: * --- awk/nqueens.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'awk') 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) } -- cgit 1.4.1-2-gfad0