hey, I think I'm not doing something correctly here..
I have a function nextState(oldState,newState) which takes my game from one state to another. the actual generating of states works fine, but when I use setof like so:
setof(newState, next(oldState,newState), U) it makes U come out as follows:
U = [newState1,newstate2,newstate3,...]
I get ... and [...] instead of the remaining states? How can I get it to show them all?
prolog setof not showing all answers?
Started by IronAlex, Apr 08 2007 08:47 PM
2 replies to this topic
#1
Posted 08 April 2007 - 08:47 PM
#2
Posted 08 April 2007 - 09:18 PM
It's just a setting in the user's file "ini.pl"
Uncomment the line
Uncomment the line
%:- set_prolog_flag(toplevel_print_options, % [quoted(true), portray(true), max_depth(10)]).an set max_depth to 0. :
:- set_prolog_flag(toplevel_print_options, [quoted(true), portray(true), max_depth(0)]).
#3
Posted 09 April 2007 - 01:55 PM
Thank you my friend! :)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











