drakongen 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/.vscode/launch.json +18 -0
  2. package/LICENSE +24 -0
  3. package/README.md +80 -0
  4. package/browser/drakongen.js +1303 -0
  5. package/browsertest.html +84 -0
  6. package/buildbrowser +4 -0
  7. package/buildexamples.js +61 -0
  8. package/examples/00.Empty.drakon +1 -0
  9. package/examples/00.Empty.txt +5 -0
  10. package/examples/01. /320/221/320/265/320/273/321/213/320/270/314/206.drakon" +13 -0
  11. package/examples/01. /320/221/320/265/320/273/321/213/320/271.json" +16 -0
  12. package/examples/01. /320/221/320/265/320/273/321/213/320/271.txt" +4 -0
  13. package/examples/02. /320/247/320/265/314/210/321/200/320/275/321/213/320/270/314/206.drakon" +28 -0
  14. package/examples/02. /320/247/321/221/321/200/320/275/321/213/320/271.json" +31 -0
  15. package/examples/02. /320/247/321/221/321/200/320/275/321/213/320/271.txt" +10 -0
  16. package/examples/03. /320/241/320/265/321/200/321/213/320/270/314/206.drakon" +20 -0
  17. package/examples/03. /320/241/320/265/321/200/321/213/320/271.json" +23 -0
  18. package/examples/03. /320/241/320/265/321/200/321/213/320/271.txt" +6 -0
  19. package/examples/04. /320/221/321/203/321/200/321/213/320/270/314/206.drakon" +25 -0
  20. package/examples/04. /320/221/321/203/321/200/321/213/320/271.json" +29 -0
  21. package/examples/04. /320/221/321/203/321/200/321/213/320/271.txt" +7 -0
  22. package/examples/05. /320/226/320/265/314/210/320/273/321/202/321/213/320/270/314/206.drakon" +25 -0
  23. package/examples/05. /320/226/321/221/320/273/321/202/321/213/320/271.json" +29 -0
  24. package/examples/05. /320/226/321/221/320/273/321/202/321/213/320/271.txt" +7 -0
  25. package/examples/06. /320/221/320/260/320/263/321/200/320/276/320/262/321/213/320/270/314/206.drakon" +30 -0
  26. package/examples/06. /320/221/320/260/320/263/321/200/320/276/320/262/321/213/320/271.json" +35 -0
  27. package/examples/06. /320/221/320/260/320/263/321/200/320/276/320/262/321/213/320/271.txt" +10 -0
  28. package/examples/07. /320/244/320/270/320/276/320/273/320/265/321/202/320/276/320/262/321/213/320/270/314/206.drakon" +42 -0
  29. package/examples/07. /320/244/320/270/320/276/320/273/320/265/321/202/320/276/320/262/321/213/320/271.json" +49 -0
  30. package/examples/07. /320/244/320/270/320/276/320/273/320/265/321/202/320/276/320/262/321/213/320/271.txt" +14 -0
  31. package/examples/08. /320/221/320/270/321/200/321/216/320/267/320/276/320/262/321/213/320/270/314/206.drakon" +27 -0
  32. package/examples/08. /320/221/320/270/321/200/321/216/320/267/320/276/320/262/321/213/320/271.json" +27 -0
  33. package/examples/08. /320/221/320/270/321/200/321/216/320/267/320/276/320/262/321/213/320/271.txt" +6 -0
  34. package/examples/09. /320/236/321/200/320/260/320/275/320/266/320/265/320/262/321/213/320/270/314/206.drakon" +37 -0
  35. package/examples/09. /320/236/321/200/320/260/320/275/320/266/320/265/320/262/321/213/320/271.json" +39 -0
  36. package/examples/09. /320/236/321/200/320/260/320/275/320/266/320/265/320/262/321/213/320/271.txt" +10 -0
  37. package/examples/10. /320/240/320/276/320/267/320/276/320/262/321/213/320/270/314/206.drakon" +42 -0
  38. package/examples/10. /320/240/320/276/320/267/320/276/320/262/321/213/320/271.json" +54 -0
  39. package/examples/10. /320/240/320/276/320/267/320/276/320/262/321/213/320/271.txt" +16 -0
  40. package/examples/11. /320/227/320/260/321/211/320/270/321/202/320/275/321/213/320/270/314/206.drakon" +37 -0
  41. package/examples/11. /320/227/320/260/321/211/320/270/321/202/320/275/321/213/320/271.json" +39 -0
  42. package/examples/11. /320/227/320/260/321/211/320/270/321/202/320/275/321/213/320/271.txt" +10 -0
  43. package/examples/12. /320/221/320/276/320/273/320/276/321/202/320/275/321/213/320/270/314/206.drakon" +44 -0
  44. package/examples/12. /320/221/320/276/320/273/320/276/321/202/320/275/321/213/320/271.json" +43 -0
  45. package/examples/12. /320/221/320/276/320/273/320/276/321/202/320/275/321/213/320/271.txt" +10 -0
  46. package/examples/13. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/270/314/206.drakon" +54 -0
  47. package/examples/13. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.json" +63 -0
  48. package/examples/13. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.txt" +18 -0
  49. package/examples/14. /320/227/320/276/320/273/320/276/321/202/320/276/320/270/314/206.drakon" +64 -0
  50. package/examples/14. /320/227/320/276/320/273/320/276/321/202/320/276/320/271.json" +73 -0
  51. package/examples/14. /320/227/320/276/320/273/320/276/321/202/320/276/320/271.txt" +22 -0
  52. package/examples/15. /320/241/320/270/320/275/320/270/320/270/314/206.drakon" +54 -0
  53. package/examples/15. /320/241/320/270/320/275/320/270/320/271.json" +87 -0
  54. package/examples/15. /320/241/320/270/320/275/320/270/320/271.txt" +26 -0
  55. package/examples/16. /320/223/320/276/320/273/321/203/320/261/320/276/320/270/314/206.drakon" +37 -0
  56. package/examples/16. /320/223/320/276/320/273/321/203/320/261/320/276/320/271.json" +48 -0
  57. package/examples/16. /320/223/320/276/320/273/321/203/320/261/320/276/320/271.txt" +13 -0
  58. package/examples/17. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/270/314/206.drakon" +39 -0
  59. package/examples/17. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.json" +41 -0
  60. package/examples/17. /320/241/320/260/320/273/320/260/321/202/320/276/320/262/321/213/320/271.txt" +10 -0
  61. package/examples/18. /320/241/321/202/320/260/320/273/321/214/320/275/320/276/320/270/314/206.drakon" +49 -0
  62. package/examples/18. /320/241/321/202/320/260/320/273/321/214/320/275/320/276/320/271.json" +67 -0
  63. package/examples/18. /320/241/321/202/320/260/320/273/321/214/320/275/320/276/320/271.txt" +19 -0
  64. package/examples/19. Lilla.drakon +39 -0
  65. package/examples/19. Lilla.json +45 -0
  66. package/examples/19. Lilla.txt +11 -0
  67. package/examples/Adaptive design.drakon +116 -0
  68. package/examples/Adaptive design.json +153 -0
  69. package/examples/Adaptive design.txt +47 -0
  70. package/examples/And test.drakon +46 -0
  71. package/examples/And test.json +46 -0
  72. package/examples/And test.txt +10 -0
  73. package/examples/Arrow - double exit.drakon +41 -0
  74. package/examples/Arrow - double exit.json +62 -0
  75. package/examples/Arrow - double exit.txt +14 -0
  76. package/examples/Complex arrow.drakon +93 -0
  77. package/examples/Complex arrow.json +162 -0
  78. package/examples/Complex arrow.txt +43 -0
  79. package/examples/DoubleArrow.drakon +53 -0
  80. package/examples/DoubleArrow.json +86 -0
  81. package/examples/DoubleArrow.txt +18 -0
  82. package/examples/Find pointing nodes.drakon +104 -0
  83. package/examples/Find pointing nodes.json +137 -0
  84. package/examples/Find pointing nodes.txt +29 -0
  85. package/examples/How to tune PID on a quadcopter.drakon +488 -0
  86. package/examples/How to tune PID on a quadcopter.json +734 -0
  87. package/examples/How to tune PID on a quadcopter.txt +169 -0
  88. package/examples/Or test.drakon +47 -0
  89. package/examples/Or test.json +46 -0
  90. package/examples/Or test.txt +10 -0
  91. package/examples/Silhouette test 1.drakon +47 -0
  92. package/examples/Silhouette test 1.json +82 -0
  93. package/examples/Silhouette test 1.txt +24 -0
  94. package/examples/Work out action-check.drakon +30 -0
  95. package/examples/Work out action-check.json +45 -0
  96. package/examples/Work out action-check.txt +9 -0
  97. package/examples/Workout foreach.drakon +63 -0
  98. package/examples/Workout foreach.json +62 -0
  99. package/examples/Workout foreach.txt +14 -0
  100. package/examples/ar01.drakon +25 -0
  101. package/examples/ar01.json +40 -0
  102. package/examples/ar01.txt +7 -0
  103. package/examples/ar02.drakon +30 -0
  104. package/examples/ar02.json +45 -0
  105. package/examples/ar02.txt +10 -0
  106. package/examples/ar03.drakon +32 -0
  107. package/examples/ar03.json +44 -0
  108. package/examples/ar03.txt +7 -0
  109. package/examples/ar04.drakon +37 -0
  110. package/examples/ar04.json +49 -0
  111. package/examples/ar04.txt +10 -0
  112. package/examples/ar05.drakon +37 -0
  113. package/examples/ar05.json +59 -0
  114. package/examples/ar05.txt +11 -0
  115. package/examples/ar06.drakon +40 -0
  116. package/examples/ar06.json +70 -0
  117. package/examples/ar06.txt +13 -0
  118. package/examples/ar07.drakon +40 -0
  119. package/examples/ar07.json +70 -0
  120. package/examples/ar07.txt +13 -0
  121. package/examples/ar08.drakon +47 -0
  122. package/examples/ar08.json +81 -0
  123. package/examples/ar08.txt +16 -0
  124. package/examples/ar09.drakon +52 -0
  125. package/examples/ar09.json +87 -0
  126. package/examples/ar09.txt +17 -0
  127. package/examples/ar10.drakon +52 -0
  128. package/examples/ar10.json +88 -0
  129. package/examples/ar10.txt +18 -0
  130. package/examples/ar11.drakon +47 -0
  131. package/examples/ar11.json +82 -0
  132. package/examples/ar11.txt +17 -0
  133. package/examples/ar12.drakon +37 -0
  134. package/examples/ar12.json +49 -0
  135. package/examples/ar12.txt +10 -0
  136. package/examples/getToken.drakon +76 -0
  137. package/examples/getToken.json +88 -0
  138. package/examples/getToken.txt +41 -0
  139. package/examples/tmp.drakon +49 -0
  140. package/examples/tmp.json +82 -0
  141. package/examples/tmp.txt +37 -0
  142. package/package.json +21 -0
  143. package/prompts/drakonToPrompt.txt +139 -0
  144. package/prompts/index.txt +17 -0
  145. package/prompts/printPseudo.txt +116 -0
  146. package/src/browserTools.js +39 -0
  147. package/src/drakonToPromptStruct.js +44 -0
  148. package/src/drakonToStruct.js +416 -0
  149. package/src/drakongen.js +16 -0
  150. package/src/index.js +17 -0
  151. package/src/main.js +157 -0
  152. package/src/nodeTools.js +38 -0
  153. package/src/printPseudo.js +167 -0
  154. package/src/structFlow.js +382 -0
  155. package/src/technicalTree.js +84 -0
  156. package/src/tools.js +36 -0
  157. package/src/translate.js +108 -0
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "14. Золотой",
3
+ "params": "",
4
+ "branches": [
5
+ {
6
+ "branchId": 0,
7
+ "start": "4",
8
+ "body": [
9
+ {
10
+ "type": "question",
11
+ "id": "4",
12
+ "content": "3",
13
+ "yes": [
14
+ {
15
+ "type": "question",
16
+ "id": "14",
17
+ "content": "8",
18
+ "yes": [
19
+ {
20
+ "id": "11",
21
+ "type": "action",
22
+ "content": "5"
23
+ }
24
+ ],
25
+ "no": [
26
+ {
27
+ "id": "17",
28
+ "type": "action",
29
+ "content": "9"
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "id": "44",
35
+ "type": "action",
36
+ "content": "10"
37
+ }
38
+ ],
39
+ "no": [
40
+ {
41
+ "type": "question",
42
+ "id": "8",
43
+ "content": "4",
44
+ "yes": [
45
+ {
46
+ "id": "12",
47
+ "type": "action",
48
+ "content": "6"
49
+ }
50
+ ],
51
+ "no": [
52
+ {
53
+ "id": "13",
54
+ "type": "action",
55
+ "content": "7"
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "id": "47",
61
+ "type": "action",
62
+ "content": "11"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "id": "2",
68
+ "type": "end"
69
+ }
70
+ ]
71
+ }
72
+ ]
73
+ }
@@ -0,0 +1,22 @@
1
+ Procedure "14. Золотой"
2
+
3
+ Algorithm:
4
+ If 3
5
+ If 8
6
+ 5
7
+
8
+ Else
9
+ 9
10
+
11
+ 10
12
+
13
+ Else
14
+ If 4
15
+ 6
16
+
17
+ Else
18
+ 7
19
+
20
+ 11
21
+
22
+ End of procedure
@@ -0,0 +1,54 @@
1
+ {
2
+ "type": "drakon",
3
+ "items": {
4
+ "2": {
5
+ "type": "end"
6
+ },
7
+ "4": {
8
+ "type": "question",
9
+ "flag1": 1,
10
+ "one": "63",
11
+ "two": "47",
12
+ "content": "3"
13
+ },
14
+ "14": {
15
+ "type": "question",
16
+ "flag1": 1,
17
+ "one": "60",
18
+ "two": "24",
19
+ "content": "7"
20
+ },
21
+ "24": {
22
+ "type": "action",
23
+ "one": "2",
24
+ "content": "9"
25
+ },
26
+ "47": {
27
+ "type": "question",
28
+ "flag1": 1,
29
+ "one": "66",
30
+ "two": "24",
31
+ "content": "4"
32
+ },
33
+ "60": {
34
+ "type": "action",
35
+ "one": "2",
36
+ "content": "8"
37
+ },
38
+ "63": {
39
+ "type": "action",
40
+ "one": "14",
41
+ "content": "5"
42
+ },
43
+ "66": {
44
+ "type": "action",
45
+ "one": "14",
46
+ "content": "6"
47
+ },
48
+ "69": {
49
+ "type": "branch",
50
+ "branchId": 0,
51
+ "one": "4"
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "15. Синий",
3
+ "params": "",
4
+ "branches": [
5
+ {
6
+ "branchId": 0,
7
+ "start": "4",
8
+ "body": [
9
+ {
10
+ "type": "question",
11
+ "id": "4",
12
+ "content": "3",
13
+ "yes": [
14
+ {
15
+ "id": "63",
16
+ "type": "action",
17
+ "content": "5"
18
+ },
19
+ {
20
+ "type": "question",
21
+ "id": "14",
22
+ "content": "7",
23
+ "yes": [
24
+ {
25
+ "id": "60",
26
+ "type": "action",
27
+ "content": "8"
28
+ }
29
+ ],
30
+ "no": [
31
+ {
32
+ "id": "24",
33
+ "type": "action",
34
+ "content": "9"
35
+ }
36
+ ]
37
+ }
38
+ ],
39
+ "no": [
40
+ {
41
+ "type": "question",
42
+ "id": "47",
43
+ "content": "4",
44
+ "yes": [
45
+ {
46
+ "id": "66",
47
+ "type": "action",
48
+ "content": "6"
49
+ },
50
+ {
51
+ "type": "question",
52
+ "id": "14",
53
+ "content": "7",
54
+ "yes": [
55
+ {
56
+ "id": "60",
57
+ "type": "action",
58
+ "content": "8"
59
+ }
60
+ ],
61
+ "no": [
62
+ {
63
+ "id": "24",
64
+ "type": "action",
65
+ "content": "9"
66
+ }
67
+ ]
68
+ }
69
+ ],
70
+ "no": [
71
+ {
72
+ "id": "24",
73
+ "type": "action",
74
+ "content": "9"
75
+ }
76
+ ]
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "id": "2",
82
+ "type": "end"
83
+ }
84
+ ]
85
+ }
86
+ ]
87
+ }
@@ -0,0 +1,26 @@
1
+ Procedure "15. Синий"
2
+
3
+ Algorithm:
4
+ If 3
5
+ 5
6
+
7
+ If 7
8
+ 8
9
+
10
+ Else
11
+ 9
12
+
13
+ Else
14
+ If 4
15
+ 6
16
+
17
+ If 7
18
+ 8
19
+
20
+ Else
21
+ 9
22
+
23
+ Else
24
+ 9
25
+
26
+ End of procedure
@@ -0,0 +1,37 @@
1
+ {
2
+ "type": "drakon",
3
+ "items": {
4
+ "2": {
5
+ "type": "end"
6
+ },
7
+ "7": {
8
+ "type": "question",
9
+ "flag1": 1,
10
+ "one": "24",
11
+ "two": "60",
12
+ "content": "3"
13
+ },
14
+ "24": {
15
+ "type": "question",
16
+ "flag1": 1,
17
+ "one": "2",
18
+ "two": "50",
19
+ "content": "4"
20
+ },
21
+ "50": {
22
+ "type": "action",
23
+ "one": "60",
24
+ "content": "5"
25
+ },
26
+ "60": {
27
+ "type": "action",
28
+ "one": "2",
29
+ "content": "6"
30
+ },
31
+ "70": {
32
+ "type": "branch",
33
+ "branchId": 0,
34
+ "one": "7"
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "16. Голубой",
3
+ "params": "",
4
+ "branches": [
5
+ {
6
+ "branchId": 0,
7
+ "start": "7",
8
+ "body": [
9
+ {
10
+ "type": "question",
11
+ "id": "7",
12
+ "content": "3",
13
+ "yes": [
14
+ {
15
+ "type": "question",
16
+ "id": "24",
17
+ "content": "4",
18
+ "yes": [],
19
+ "no": [
20
+ {
21
+ "id": "50",
22
+ "type": "action",
23
+ "content": "5"
24
+ },
25
+ {
26
+ "id": "60",
27
+ "type": "action",
28
+ "content": "6"
29
+ }
30
+ ]
31
+ }
32
+ ],
33
+ "no": [
34
+ {
35
+ "id": "60",
36
+ "type": "action",
37
+ "content": "6"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "id": "2",
43
+ "type": "end"
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ }
@@ -0,0 +1,13 @@
1
+ Procedure "16. Голубой"
2
+
3
+ Algorithm:
4
+ If 3
5
+ If not (4)
6
+ 5
7
+
8
+ 6
9
+
10
+ Else
11
+ 6
12
+
13
+ End of procedure
@@ -0,0 +1,39 @@
1
+ {
2
+ "type": "drakon",
3
+ "items": {
4
+ "2": {
5
+ "type": "end"
6
+ },
7
+ "4": {
8
+ "type": "question",
9
+ "flag1": 1,
10
+ "one": "14",
11
+ "two": "30",
12
+ "content": "3"
13
+ },
14
+ "14": {
15
+ "type": "question",
16
+ "flag1": 1,
17
+ "one": "33",
18
+ "two": "2",
19
+ "content": "4"
20
+ },
21
+ "30": {
22
+ "type": "action",
23
+ "one": "2",
24
+ "content": "6"
25
+ },
26
+ "33": {
27
+ "type": "question",
28
+ "flag1": 1,
29
+ "one": "2",
30
+ "two": "2",
31
+ "content": "5"
32
+ },
33
+ "53": {
34
+ "type": "branch",
35
+ "branchId": 0,
36
+ "one": "4"
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "17. Салатовый",
3
+ "params": "",
4
+ "branches": [
5
+ {
6
+ "branchId": 0,
7
+ "start": "4",
8
+ "body": [
9
+ {
10
+ "type": "question",
11
+ "id": "4",
12
+ "content": "3",
13
+ "yes": [
14
+ {
15
+ "type": "question",
16
+ "id": "14",
17
+ "content": {
18
+ "operator": "and",
19
+ "left": "4",
20
+ "right": "5"
21
+ },
22
+ "yes": [],
23
+ "no": []
24
+ }
25
+ ],
26
+ "no": [
27
+ {
28
+ "id": "30",
29
+ "type": "action",
30
+ "content": "6"
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ "id": "2",
36
+ "type": "end"
37
+ }
38
+ ]
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,10 @@
1
+ Procedure "17. Салатовый"
2
+
3
+ Algorithm:
4
+ If 3
5
+ If 4 and 5
6
+ Pass
7
+ Else
8
+ 6
9
+
10
+ End of procedure
@@ -0,0 +1,49 @@
1
+ {
2
+ "type": "drakon",
3
+ "items": {
4
+ "2": {
5
+ "type": "end"
6
+ },
7
+ "4": {
8
+ "type": "question",
9
+ "flag1": 1,
10
+ "one": "14",
11
+ "two": "30",
12
+ "content": "3"
13
+ },
14
+ "14": {
15
+ "type": "question",
16
+ "flag1": 1,
17
+ "one": "33",
18
+ "two": "52",
19
+ "content": "4"
20
+ },
21
+ "30": {
22
+ "type": "action",
23
+ "one": "62",
24
+ "content": "6"
25
+ },
26
+ "33": {
27
+ "type": "question",
28
+ "flag1": 1,
29
+ "one": "2",
30
+ "two": "62",
31
+ "content": "5"
32
+ },
33
+ "52": {
34
+ "type": "action",
35
+ "one": "62",
36
+ "content": "7"
37
+ },
38
+ "62": {
39
+ "type": "action",
40
+ "one": "2",
41
+ "content": "8"
42
+ },
43
+ "89": {
44
+ "type": "branch",
45
+ "branchId": 0,
46
+ "one": "4"
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "18. Стальной",
3
+ "params": "",
4
+ "branches": [
5
+ {
6
+ "branchId": 0,
7
+ "start": "4",
8
+ "body": [
9
+ {
10
+ "type": "question",
11
+ "id": "4",
12
+ "content": "3",
13
+ "yes": [
14
+ {
15
+ "type": "question",
16
+ "id": "14",
17
+ "content": "4",
18
+ "yes": [
19
+ {
20
+ "type": "question",
21
+ "id": "33",
22
+ "content": "5",
23
+ "yes": [],
24
+ "no": [
25
+ {
26
+ "id": "62",
27
+ "type": "action",
28
+ "content": "8"
29
+ }
30
+ ]
31
+ }
32
+ ],
33
+ "no": [
34
+ {
35
+ "id": "52",
36
+ "type": "action",
37
+ "content": "7"
38
+ },
39
+ {
40
+ "id": "62",
41
+ "type": "action",
42
+ "content": "8"
43
+ }
44
+ ]
45
+ }
46
+ ],
47
+ "no": [
48
+ {
49
+ "id": "30",
50
+ "type": "action",
51
+ "content": "6"
52
+ },
53
+ {
54
+ "id": "62",
55
+ "type": "action",
56
+ "content": "8"
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "id": "2",
62
+ "type": "end"
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }
@@ -0,0 +1,19 @@
1
+ Procedure "18. Стальной"
2
+
3
+ Algorithm:
4
+ If 3
5
+ If 4
6
+ If not (5)
7
+ 8
8
+
9
+ Else
10
+ 7
11
+
12
+ 8
13
+
14
+ Else
15
+ 6
16
+
17
+ 8
18
+
19
+ End of procedure
@@ -0,0 +1,39 @@
1
+ {
2
+ "type": "drakon",
3
+ "items": {
4
+ "2": {
5
+ "type": "end"
6
+ },
7
+ "4": {
8
+ "type": "question",
9
+ "flag1": 1,
10
+ "one": "8",
11
+ "two": "2",
12
+ "content": "3"
13
+ },
14
+ "8": {
15
+ "type": "question",
16
+ "flag1": 1,
17
+ "one": "12",
18
+ "two": "29",
19
+ "content": "4"
20
+ },
21
+ "12": {
22
+ "type": "question",
23
+ "flag1": 1,
24
+ "one": "2",
25
+ "two": "2",
26
+ "content": "5"
27
+ },
28
+ "29": {
29
+ "type": "action",
30
+ "one": "2",
31
+ "content": "6"
32
+ },
33
+ "32": {
34
+ "type": "branch",
35
+ "branchId": 0,
36
+ "one": "4"
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "19. Lilla",
3
+ "params": "",
4
+ "branches": [
5
+ {
6
+ "branchId": 0,
7
+ "start": "4",
8
+ "body": [
9
+ {
10
+ "type": "question",
11
+ "id": "4",
12
+ "content": "3",
13
+ "yes": [
14
+ {
15
+ "type": "question",
16
+ "id": "8",
17
+ "content": "4",
18
+ "yes": [
19
+ {
20
+ "type": "question",
21
+ "id": "12",
22
+ "content": "5",
23
+ "yes": [],
24
+ "no": []
25
+ }
26
+ ],
27
+ "no": [
28
+ {
29
+ "id": "29",
30
+ "type": "action",
31
+ "content": "6"
32
+ }
33
+ ]
34
+ }
35
+ ],
36
+ "no": []
37
+ },
38
+ {
39
+ "id": "2",
40
+ "type": "end"
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }