I don't understand nth_member.
I haven't done this, this is part of the assignment that we are doing.
inboard(C) :-
0<C,
0<9.
But my main problem is
coordinate_to_list(X/Y,L) :-
length(L,8),
(i don't know what to do here)!!
I sent the teacher a mail and...
We have this assignment on our school.
- Modify the knightpath predicate to have the same representation as the queen program.
- You only have to change the representation in the knightpath predicate itself. The easiest way to do this is to use help-predicates so that we get something like this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.