a set of facts of the form:
flight(DepartCity,DepartTime,ArriveCity,ArriveTime,Cost,Airline);
For example
flight(newyork,1300,chicago 1500,275,united)
Rules:
3. connect(DepartCity,ArriveCity) :- ...
indicates that it's possible to get from DepartCity to ArriveCity
via one or more flights
4...
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.