I'm trying to implement a lexicographic ordering constraint in BProlog using its CLP(FD). As far as I can see from the manual BProlog doesn't provide ...
I'm trying to implement a lexicographic ordering constraint in BProlog using its CLP(FD). As far as I can see from the manual BProlog doesn't provide ...
I did a few experiments with the tabling capabilities of b-prolog version 8.1 and was quite surprised by the performance I observed. Here is the code ...
Is there a workaround to make ensure_loaded/1 work in B-Prolog as it works in many other Prolog systems? The goal is to have a preamble so that the re ...
Is it possible to append a number to a term directly? I.e., I can easily do something like this: But is there a way (operator?) to specify someth ...
B-Prolog has logical loops. For example, that's how we can calculate sum of [1,2,3]: But when I try two nested loops with accumulators, I get error ...
I am trying to make a game similar to minesweeper and i need to check the neighbours of a square in the map but i get a syntax error at my for loop, I ...
This is a program that should find out who is compatible with john. I am new to Prolog. In order to let Prolog know eg. met(X,Y) = met (Y,X) lots of c ...
What's the easiest way to read a number or several space-separated numbers (NOT followed by a period) in B-Prolog from standard input? For example, ...
The documentation of BProlog mentions: "B-Prolog has a bi-directional interface with C through which Prolog programs can call functions written in C a ...
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: ...