fix: XSB incompetible(between)
This commit is contained in:
parent
26687ea775
commit
ebb4f02981
|
@ -1,3 +1,10 @@
|
||||||
|
between(I, J, K) :-
|
||||||
|
I =< J,
|
||||||
|
( I = K
|
||||||
|
; I1 is I+1,
|
||||||
|
between(I1, J, K)
|
||||||
|
).
|
||||||
|
|
||||||
legal_queens(N, Row, []) :- N =:= Row - 1.
|
legal_queens(N, Row, []) :- N =:= Row - 1.
|
||||||
legal_queens(N, Row1, [(Row1, Col1)|Queens]) :-
|
legal_queens(N, Row1, [(Row1, Col1)|Queens]) :-
|
||||||
Row1 < N + 1,
|
Row1 < N + 1,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user