我一直得到这个运营商:
Syntax error: Operator expected
我的代码的第3行。
rotationsAndPlayers(Rotations,Maze):-
length(Rotations) + length(findPlayers(generateList(Maze))) % 2 is 0.
generateList([]).
generateList([H|T]):-
append(H | generateList(T)).
findPlayers([], Result):- Result.
findPlayers([H|T], Result):-
((numlist(1,4,NL), member(H, NL)) -> findPlayers(T, Result + 1), findPlayers(T, Result)).
我哪里错了?