Balain
2014-04-11, 06:04 PM
I have to write a simple little text game in prolog. It is coming along okay so far. I am using ...,fail. for each command so it doesn't wait for user to type . or ; with a true rule right after.
As an Example:
...
play :- nl,nl,
write('At any time you can type help to get a list of commands.'),nl,nl,
write('blah blah blah blah blah blah....'),look.
play.
....
this works fine but now after every command prolog returns true. Is there a way in prolog to not echo true after each command?
As an Example:
...
play :- nl,nl,
write('At any time you can type help to get a list of commands.'),nl,nl,
write('blah blah blah blah blah blah....'),look.
play.
....
this works fine but now after every command prolog returns true. Is there a way in prolog to not echo true after each command?