The Wedding Woes description discusses guests around a round table. I take this to mean that the last guest must be compatible with the first guest.
While mentoring someone, I noticed that their solution lacked this final pairing/2
check, yet they passed the test suite. Here is an example of a query where that should fail since esteban
should not sit next to jaime
:
wedding_woes: ?- seating(jaime, valeria, gustavo, malena, esteban).
false.
wedding_woes: ?- pairing(esteban, jaime).
false.
wedding_woes: ?- pairing(jaime, esteban).
false.