You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one works. The ! is a cut, meaning once a solution is found, Prolog does not have to backtrack (and thus does not have to find any alternative routes). The trick was to use another functor for the other direction, called travelBetweenReverseDirection, so that Prolog cannot go back to the initial direction using travelBetween.
Are you sure about the solution? It looks like OUT OF LOCAL STACK will be occur.
The text was updated successfully, but these errors were encountered: