summaryrefslogtreecommitdiff
path: root/prolog/problems/family_relations/connected_3/en.py
blob: f50d60ede55888c72ad9bcd95bfbacf30e972bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# coding=utf-8

name = 'connected/3'
slug = 'check if two people are connected in the family tree'

description = '''\
<p><code>connected(X, Y, N)</code>: <code>X</code> and <code>Y</code> are connected with a series of (no more than <code>N</code>) parent/child relations.</p>
<pre>
  ?- connected(ana, morty, 10).
    false.
  ?- connected(ana, margaret, 10).
    true.
</pre>'''

hint = {}