prolog求解八皇后問題

Solution #1: solution([]).web solution([X/Y|Others]) :- solution(Others), member(Y, [1,2,3,4,5,6,7,8]), noattack(X/Y, Others).dom noattack(_,[]).svg noattack(X/Y,[X1/Y1|Others]) :- Y == Y1, Y1 - Y ==
相關文章
相關標籤/搜索