prolog
Issue with 'greater than'
Anyone knows why this keeps failing? foo :- write(\'3 numbers: \'), read(A), read(B), read(C), (A > B,B > C,write(A),tab(1),write(B),tab(1),write(C));[详细]
2023-04-11 20:55 分类:问答Advice on solving zebra type puzzle
I need your help in solving the following problem: There\'re 3 girls (Ann,Susan,Alice) who need to choose what color shoes and dress to wear. There\'re 3 possible colors for shoes and dresses: white,[详细]
2023-04-11 11:24 分类:问答Delete Last 3 elements of List L to make List L1 in Prolog
How do i write a goal that deletes the last three elements from a list L producing another list 开发者_Go百科L1?[详细]
2023-04-11 02:54 分类:问答Writing formatted text in SWI-Prolog
I have spent a significant amount of time in the SWI-Prolog documentation and am getting nowhere.My desire is to be able to format numbers that are output such that I am controlling total # decimal di[详细]
2023-04-11 01:30 分类:问答Prolog find all paths Implementation
I\'ve been tasked to i开发者_高级运维mplement a version of findall in Prolog without using any Prolog built-ins except for not and cut - so basically in pure Prolog.[详细]
2023-04-10 18:56 分类:问答Running CG graphics on BProlog?
i recently installed B-prolog and tried CG graphics examples from here http://www.probp.com/ According to their manual, i\'ve installed B prolog in C:/ drive and its compiling propoerly but not execu[详细]
2023-04-10 12:38 分类:问答Prolog programming - path way to a solution
I am studying prolog at university and facing some problems. What I already found out is just solution to a problem. However, I\'m more interested in the way to think, i.e. how to get such solution.[详细]
2023-04-08 18:35 分类:问答Weather predictions
Peter decides what to do at weekends according to the weather predictions. This is the available information:[详细]
2023-04-08 05:45 分类:问答Require help understanding a prolog method for appending list elements
append([],Xs,Xs). append([Head|Tail],List2,[Head|Tail2]):- append(Tail,List2,Tail2). The upper append method adds elements from first two parameter slots to the third param variable.[详细]
2023-04-07 17:18 分类:问答JPL for java\prolog
I\'m interested in using JPL with java, but an error message is prompting lik开发者_开发问答e \'package jpl does not exist\' while trying to compile the java program. How do i import jpl to java?You n[详细]
2023-04-07 11:30 分类:问答