1
1
Fork 0
exercism/prolog/wedding-woes/HINTS.md
Christina Sørensen 9ffc70cd57
feat(prolog): wedding woes
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-12-22 16:42:31 +01:00

1.4 KiB

Hints

General

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