File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/examples/source-3-non-det Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1414 columns being fixed. This further reduces the search space, yielding a quick solution when N = 8.
1515*/
1616
17-
18- const N = 8 ; // the number of queens and the size of the board
19- const empty_positions = null ;
20-
2117/* Pretty prints a solution to the n-queens puzzle */
2218function pretty_print ( result , board_size ) {
2319 function member_eq ( v , xs ) {
@@ -48,6 +44,9 @@ function pretty_print(result, board_size) {
4844}
4945
5046
47+ const N = 8 ; // the number of queens and the size of the board
48+ const empty_positions = null ;
49+
5150/******************************************************************************/
5251/* Slow version which uses non-determinism for both the columns and rows, */
5352/* perform testing of a required condition as soon as the choice is generated */
You can’t perform that action at this time.
0 commit comments