-one for the computer player's pieces
and
-one for the human player's pieces
I have tried my code in SWI-Prolog with Logtalk and it works just fine.
But, when switching to JIProlog with Logtalk I get an error when trying to read a list from input.
I am reading the human player's move from console, under the form of a list.
The error I receive is the following:
Code: Select all
error(syntax_error('operator_expected([])'), file(user, 1))
Syntax Error - File: user, Line: 1, Cause: operator_expected([])
Code: Select all
appendL :- write('List '),
nl,
read(L),
append(L,[3,4], R),
write('New '),
nl,
write(R).

In SWI-Prolog and Logtalk it works ok. Can you please help me solve this problem?
Yours sincerely,
Monica Dogaru