r/prolog • • Jan 17 '19

[Beginner] Predicate not called?

Post image
0 Upvotes

7 comments sorted by

3

u/ReedOei Jan 18 '19

What is the question here?

1

u/[deleted] Jan 18 '19

dating is like in red, this is a problem off of youtube and for some reason when I do the rule it dosent let me compile it. I'm completely new to prolog started it at school this week and I dont understand what the problem is here

4

u/ReedOei Jan 18 '19

I assume you're using SWISH? This isn't an error, it's just letting you know that the predicate isn't being called anywhere in the file. If you run a query, it will work as expected.

1

u/[deleted] Jan 18 '19

See I'm using swish and I ran it and said it's not working this is my problem I don't think I have any syntax errors

3

u/ReedOei Jan 18 '19

I just ran it and it works fine: https://i.imgur.com/iNjY46I.png

2

u/[deleted] Jan 18 '19

yeah I just noticed my bad, I think I changed the syntax thank you anyway

6

u/curious_s Jan 18 '19

Except that the program assumes that because two people like each other that they must be dating, quite unrealistic...