summaryrefslogtreecommitdiff
path: root/prolog/problems/world_data/flows_2/en.py
blob: 355b238bcb69c58d75d949afbf47b7eef46b149d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name = 'flows/2'
slug = ''

description = '''\
<p><code>flows(X, Y)</code>: the river <code>X</code> flows to sea <code>Y</code>.
The predicate should follow the flow from <code>X</code> through different rivers
until it reaches a sea - for example, Drina flows into Save, which flows into Donau,
ending in the Black Sea:</p>
<pre>
?- flows('Drina', Y).
  Y = 'Black Sea'.
</pre>
<p>River data is given by the predicate</p>
<pre>
river(Name, FlowsToRiver, FlowsToLake, FlowsToSea, Length, Area,
      SourceLat, SourceLon, SourceName, SourceElevation, MouthLat, MouthLon).
</pre>
'''

hint = {}