Skip to content

Commit c57a0d5

Browse files
committed
move variables
1 parent 72c27fd commit c57a0d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/examples/source-3-non-det/queens.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
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 */
2218
function 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 */

0 commit comments

Comments
 (0)