summaryrefslogtreecommitdiff
path: root/prolog/problems/clp_fd/magic_1
diff options
context:
space:
mode:
authorAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2015-12-15 10:45:30 +0100
committerAleksander Sadikov <aleksander.sadikov@fri.uni-lj.si>2015-12-15 10:46:19 +0100
commit2a4a1d39bfcfb8b258be96c180dde09a12345295 (patch)
treedac9e6080fac3adf0fe0b5d93a65ea0259a5b2e6 /prolog/problems/clp_fd/magic_1
parentf22468b134a88fcd7acb1415c9997f578f1abe7b (diff)
Add Slovenian translations for Prolog.{clp_fd,dcg}
Diffstat (limited to 'prolog/problems/clp_fd/magic_1')
-rw-r--r--prolog/problems/clp_fd/magic_1/sl.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/prolog/problems/clp_fd/magic_1/sl.py b/prolog/problems/clp_fd/magic_1/sl.py
new file mode 100644
index 0000000..8cf040e
--- /dev/null
+++ b/prolog/problems/clp_fd/magic_1/sl.py
@@ -0,0 +1,14 @@
+# coding=utf-8
+
+name = 'magic/1'
+slug = '3x3 magični kvadrat'
+
+description = '''\
+<p><code>magic(S)</code>: seznam <code>S</code> predstavlja 3×3 magični kvadrat (<code>S</code> je permutacija števil 1 do 9 -- tri števila tvorijo eno vrstico). Vsote števil v vsaki vrstici, stolpcu in glavni diagonali magičnega kvadrata so enake. Implementiraj ta predikat z uporabo omejitev. Predikat naj vrne vse rešitve, eno po eno.</p>
+<pre>
+ ?- magic(S).
+ S = [2, 7, 6, 9, 5, 1, 4, 3, 8] ;
+ …
+</pre>'''
+
+hint = {}