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

name = 'grandparent/2'
slug = 'the grandparent relation'

description = '''\
<p><code>grandparent(?P, ?C)</code>: <code>P</code> is a grandparent of <code>C</code>.</p>
<pre>
?- grandparent(tina, X).
  X = vanessa ;
  X = patricia.
?- grandparent(tina, vanessa).
  true.
</pre>'''

hint = {}