0

I have a prolog code for searching a book. It is a simple game. I want to make interfaces with C#. But i don't know how to connect prolog into c#. Please help me. How to conncet prolog with C#.

false
  • 10,264
  • 13
  • 101
  • 209
dmadhu
  • 41
  • 1
  • 1
  • 4

1 Answers1

2

Besides the answers mentioned on the comment link there is also a SWI Prolog has a C# Interface. You can see it here.

Here is an example provided by the aforementioned link:

PlQuery q = new PlQuery("member(A, [a,b,c])");
foreach (PlTermV s in q.Solutions)
    Console.WriteLine(s[0].ToString());

There is a full documentation.

Community
  • 1
  • 1
Shevliaskovic
  • 1,562
  • 4
  • 26
  • 43