NQueens syntax fixes
This commit is contained in:
@@ -14,7 +14,7 @@ Queen(row, col) :- Coord row, Coord col.
|
||||
:- @count col : Queen(_, col) = 1.
|
||||
|
||||
; At most one queen can go along each main diagonal.
|
||||
:- @count diag : { Queen (row, col), diag = row + col } <= 1.
|
||||
:- @count diag : { Queen(row, col), diag = row + col } <= 1.
|
||||
|
||||
; At most one queen can go along each orthogonal diagonal.
|
||||
:- @count diag : { Queen (row, col), diag = row - col } <= 1.
|
||||
:- @count diag : { Queen(row, col), diag = row - col } <= 1.
|
||||
|
||||
Reference in New Issue
Block a user