/
punkte-und-striche.html
256 lines (224 loc) · 8.63 KB
/
punkte-und-striche.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Lösungen für Spiegel Online Rätsel der Woche "16 auf einen Streich"</title>
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<script>
function solution(pos, text, width, height, x0, y0, path, link) {
const v = document.createElement('canvas');
v.width = width;
v.height = height;
v.style = 'vertical-align: middle;';
v.title = '(' + path.join(') -> (') + ')';
const c = v.getContext("2d");
if (link) {
const a = document.createElement('a');
a.href = link;
a.appendChild(v);
document.body.appendChild(a);
}
else {
document.body.appendChild(v);
}
const s = 16;
c.fillStyle = 'black';
c.font = s + 'px sans-serif';
c.textAlign = 'center';
let y = 0;
for (let line of text) {
y += s;
c.fillText(line, pos, y);
}
const d = 40;
c.fillStyle = '#80C0F0';
for (let i = 0; i < 4; i++) {
for (let j = 0; j < 4; j++) {
const x = x0 + d * i;
const y = y0 + d * j;
c.beginPath();
c.arc(x, y, 10, 0, 2 * Math.PI);
c.fill();
}
}
c.strokeStyle = 'black';
c.lineWidth = 2.5;
c.beginPath();
let o = null;
for (let p of path) {
if (p) {
const x = x0 + d * p[0];
const y = y0 + d * p[1];
if (o) c.lineTo(x, y);
else c.moveTo(x, y);
}
o = p;
}
c.stroke();
}
</script>
</head>
<body style="font-family: sans-serif">
<h3>
Lösungen für <a href="https://www.spiegel.de/karriere/16-punkte-verbinden-auf-einen-streich-raetsel-der-woche-a-1269164.html">Spiegel Online Rätsel der Woche "16 auf einen Streich"</a>
</h3>
Ich freue mich über Verbesserungsvorschläge - am besten als
<a href="https://github.com/jcsahnwaldt/jcsahnwaldt.github.io/blob/master/punkte-und-striche.html">Pull Request</a>
oder <a href="https://github.com/jcsahnwaldt/jcsahnwaldt.github.io/issues">Issue</a>.
<hr>
<h4 id="kanonisch">Kanonische Darstellungen</h4>
In der kanonischen Darstellung sind alle Geraden eingezeichnet
(bis zum letzten möglichen Schnitt mit einer anderen Gerade oder einem Punkt),
auch wenn nicht alle Abschnitte einer Geraden für eine konkrete Lösung nötig
oder erlaubt sind. Die untenstehenden <a href="#konkret">konkreten Lösungen</a>
sind Sonderfälle dieser kanonischen Darstellungen und zeigen, welche
Abschnitte der Geraden in welcher Reihenfolge verwendet werden.
<br>
<script>
solution(120, ['K1'],
240, 240, 60, 80,
[[0,3], [0,-1], [4,3], [-1, 3], [3, -1], [3,3], null, [3,2], [0,2]]
);
solution(120, ['K2'],
240, 260, 60, 90,
[[3,4], [0,-2], [0,3], [3,0], null, [3,3], [-1,3], [3,-1], [3,4]]
);
solution(160, ['K3'],
280, 340, 100, 90,
[[0,0], [3,6], [3,-2], [-2,3], [3,3], null, [-1,3], [3,-1], null, [2,-1], [2,4]]
);
solution(120, ['K4'],
240, 260, 60, 80,
[[-1,-1], [4,4], [3/2,-1], [-1,4], [4,-1], [3/2,4], [-1,-1]]
);
solution(120, ['K5'],
350, 350, 60, 60,
[[0,0], [7,0], [-1,4], [4,-1], [0,7], [0,0], [3,3]]
);
solution(140, ['K6'],
240, 340, 60, 130,
[[-1,0], [4,5], [0,-3], [0,4], [4,0], [-1,0], null, [-1,0], [3,2]]
);
solution(120, ['K7'],
280, 460, 60, 80,
[[0,2], [7/2,-3/2], [0,9], [0,-1], [5,4], [0,3/2], null, [3,1], [0,4]]
);
solution(100, ['K8'],
240, 300, 60, 90,
[[3,1], [0,4], [0,-1], [3,2], null, [0,-1], [3,5], [3,-2], [0,4]]
);
solution(120, ['K9'],
240, 380, 60, 130,
[[3,0], [0,6], [0,-3], [3,3], null, [0,-2], [7/2,3/2], [0,5], null, [1,-1], [1,4]]
);
solution(120, ['K10'],
240, 380, 60, 130,
[[0,2], [3,2], [0,-1], [0,6], [3,-3], [3,5], [0,-1]]
);
solution(120, ['K11'],
240, 460, 60, 170,
[[0,0], [4,4], [0,-4], [0,7], [4,-1], [0,3], null, [1,5], [1,-2]]
);
</script>
<hr>
<h4 id="konkret">Konkrete Lösungen</h4>
• <b><i>K1, K2, ...</i></b> bezieht sich auf obige <a href="#kanonisch">kanonische Darstellungen</a><br>
• <b><i>offen</i></b> bedeutet, dass der Linienzug an unterschiedlichen Positionen startet und endet<br>
• <b><i>geschlossen</i></b> bedeutet, dass der Linienzug an der selben Position startet und endet<br>
• <b><i>mehrmals</i></b> bedeutet, dass manche Punkte mehrmals berührt werden<br>
• <b><i>einmal</i></b> bedeutet, dass jeder Punkt genau einmal berührt wird<br>
<script>
solution(120, ['Holger Dambeck 1 (K1)', 'offen, mehrmals'],
240, 220, 60, 80,
[[5/2,3/2], [0,-1], [0,2], [3,2], [3,-1], [-1,3], [4,3]],
'https://www.spiegel.de/karriere/16-punkte-verbinden-auf-einen-streich-raetsel-der-woche-a-1269164-2.html'
);
solution(120, ['Holger Dambeck 2 (K1)', 'offen, mehrmals'],
240, 220, 60, 80,
[[5/2,2], [0,2], [0,-1], [3,2], [3,-1], [-1,3], [4,3]],
'https://www.spiegel.de/karriere/16-punkte-verbinden-auf-einen-streich-raetsel-der-woche-a-1269164-2.html'
);
solution(150, ['Holger Dambeck 3 (K2)', 'offen, mehrmals'],
240, 240, 60, 90,
[[9/4,5/2], [0,-2], [0,3], [3,0], [3,3], [-1,3], [5/2,-1/2]],
'https://www.spiegel.de/karriere/16-punkte-verbinden-auf-einen-streich-raetsel-der-woche-a-1269164-2.html'
);
solution(120, ['Gast237 (K4)', 'geschlossen, einmal'],
240, 260, 60, 80,
[[-1,-1], [4,4], [3/2,-1], [-1,4], [4,-1], [3/2,4], [-1,-1]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-1.html#postbit_75624592'
);
solution(140, ['orellino (K6)', 'offen, mehrmals'],
240, 340, 60, 130,
[[1/2,3/2], [4,5], [0,-3], [0,4], [4,0], [-1,0], [3,2]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-3.html#postbit_75626832'
);
solution(100, ['bäumler 1 (K10)', 'offen, mehrmals'],
240, 380, 60, 130,
[[1/2,2], [3,2], [0,-1], [0,6], [3,-3], [3,5], [1/2,0]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-4.html#postbit_75628687'
);
solution(120, ['bäumler 2 (K7)', 'offen, einmal'],
280, 280, 60, 100,
[[3,1], [0,4], [0,-1], [5,4], [1/3,5/3], [7/2,-3/2], [2,3]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-4.html#postbit_75629933'
);
solution(120, ['WasFuerEineWelt (K1)', 'geschlossen, mehrmals'],
240, 240, 60, 100,
// Original-Koordinaten sind falsch, aber vermutlich anders gemeint
// [[0,0], [0,5], [4,1], [0,1], [4,5], [4,0], [1,0]],
[[0,3], [0,-1], [3,2], [0,2], [3,-1], [3,3], [0,3]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-6.html#postbit_75640307'
);
solution(120, ['thom3 (K1)', 'geschlossen, mehrmals'],
240, 240, 60, 100,
[[3,2], [0,2], [0,-1], [4,3], [-1,3], [3,-1], [3,2]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-6.html#postbit_75643513'
);
if (false) // deaktiviert, zu ähnlich zu spon_8362182 1
solution(160, ['spon_8362182 0 (K2)', 'offen, einmal'],
240, 340, 60, 100,
// Original-Koordinaten korrigiert ([3,0] statt [0,3]):
// [[1,1], [3,5], [3,1], [0,4], [0,0], [3,0], [1,2]],
// 180 Grad gedreht, um Ähnlichkeit mit Dambeck 3 zu zeigen:
[[9/4,5/2], [0,-2], [0,2], [3,-1], [3,3], [0,3], [5/2,1/2]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-8.html#postbit_75659305'
);
solution(160, ['spon_8362182 1 (K2)', 'offen, einmal'],
240, 310, 60, 100,
// Original-Koordinaten:
// [[0,0], [0,3], [3,0], [0.5,0], [3,5], [3,1], [1,3]],
// 180 Grad gedreht, um Ähnlichkeit mit Dambeck 3 zu zeigen:
[[2,0], [0,2], [0,-2], [5/2,3], [0,3], [3,0], [3,3]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-8.html#postbit_75662329'
);
solution(120, ['spon_8362182 2 (K6)', 'offen, einmal'],
240, 310, 60, 100,
[[1,-1], [4,5], [0,1], [0,4], [4,0], [-1,0], [3,2]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-9.html#postbit_75673592'
);
solution(100, ['UliBreimaier (K9)', 'offen, einmal'],
240, 300, 60, 90,
[[0,-1/2], [0,4], [3,-2], [3,5], [0,-1], [5/2,3/2], [1/2,7/2]],
'https://www.spiegel.de/forum/karriere/raetsel-der-woche-16-auf-einen-streich-thread-908251-10.html#postbit_75683133'
);
solution(100, ['jcsahnwaldt 1 (K9)', 'offen, einmal'],
240, 340, 60, 90,
[[0,0], [3,6], [3,-2], [-1/2,3/2], [2,4], [2,-1], [0,3]]
);
solution(120, ['jcsahnwaldt 2 (K5)', 'offen, mehrmals'],
350, 350, 60, 60,
[[1/2,0], [7,0], [-1,4], [4,-1], [0,7], [0,0], [3,3]]
);
solution(120, ['jcsahnwaldt 3 (K3)', 'offen, mehrmals'],
280, 260, 100, 80,
[[-1/2,5/2], [3,-1], [3,3], [-2,3], [2,-1], [2,4], [0,0]]
);
solution(120, ['Leserlösung 1 (K11)', 'geschlossen, mehrmals'],
240, 330, 60, 120,
[[0,0], [4,4], [1,-2], [1,5], [4,-1], [0,3], [0,0]],
'https://www.spiegel.de/karriere/bild-1269797-1432693.html'
);
</script>
</body>
</html>