1.4 KiB
1.4 KiB
Hints
General
- The Prolog basics page explains what facts and rules are and how to define them
1. List the chatty people
- You're defining a fact
- You can define multiple "instances" of the same fact
- Remember to use lowercase names
2. List who likes whom
- You're defining a fact
- You can define multiple "instances" of the same fact
- Remember to use lowercase names
- The first argument is the person liking the other person
- The second argument is the person being liked by the other person
3. People who like each other make a good pairing
- You're defining a rule
- In Prolog, making sure that two facts/rules are both true is done via a conjunction
4. Chatty people pair with anyone
- You're defining a rule
- In Prolog, making sure that at least one of two facts/rules is true is done via a disjunction
5. Check seating arrangement
- You're defining a rule