Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Troman2

    Finding a maximum of all predicate parameters

    I have rewritten the last part, it does seem to work now: most_points(Most):- most_points(_, Most),!. %hides most_points\2, cuts duplicates most_points(Old, New):- more_points(Current, Old), most_points(Current, New). most_points(Old, New):- \+ more_points(_, Old), New = Old. %the line above...
  2. Troman2

    Finding a maximum of all predicate parameters

    Hi, I'm new to prolog. I have folowing predicated in my program: points(bob, 3). points(ted, 10). points(tom, 7). points(ben, 5). How do I find out who has the most points? I don't know how to make Prolog iterate through all points() predicates and remember the highest value. Iterating...

Part and Inventory Search

Back
Top