fix: queens
This commit is contained in:
parent
e7f0e54480
commit
ac91c6403f
|
@ -7,4 +7,3 @@
|
|||
{ q(1..n,J) } == 1 :- J = 1..n.
|
||||
:- { q(D-J,J) } >= 2, D = 2..2*n.
|
||||
:- { q(D+J,J) } >= 2, D = 1-n..n-1.
|
||||
:- q(X1, Y1), q(X2, Y2), X1 != X2, |X1-X2| + |Y1-Y2| < k.
|
|
@ -7,4 +7,4 @@
|
|||
{ q(1..n,J) } == 1 :- J = 1..n.
|
||||
:- { q(D-J,J) } >= 2, D = 2..2*n.
|
||||
:- { q(D+J,J) } >= 2, D = 1-n..n-1.
|
||||
:- q(X1, Y1), q(X2, Y2), X1 != X2, |(X1 - X2)| + |(Y1 - Y2)| <= k.
|
||||
:- q(X1, Y1), q(X2, Y2), X1 != X2, |X1-X2| + |Y1-Y2| < k.
|
Loading…
Reference in New Issue
Block a user