fix: XSB incompetible(between)

This commit is contained in:
Renge 2024-02-22 01:07:29 -05:00
parent 26687ea775
commit ebb4f02981

View File

@ -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, Row1, [(Row1, Col1)|Queens]) :-
Row1 < N + 1,