<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://microbit.eeducation.at/index.php?action=history&amp;feed=atom&amp;title=Hei%C3%9Fer_Draht_L%C3%B6sung</id>
	<title>Heißer Draht Lösung - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://microbit.eeducation.at/index.php?action=history&amp;feed=atom&amp;title=Hei%C3%9Fer_Draht_L%C3%B6sung"/>
	<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=Hei%C3%9Fer_Draht_L%C3%B6sung&amp;action=history"/>
	<updated>2026-04-29T11:28:27Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in microbit - Das Schulbuch</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=Hei%C3%9Fer_Draht_L%C3%B6sung&amp;diff=7303&amp;oldid=prev</id>
		<title>Harald.burgsteiner am 8. Februar 2022 um 14:34 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=Hei%C3%9Fer_Draht_L%C3%B6sung&amp;diff=7303&amp;oldid=prev"/>
		<updated>2022-02-08T14:34:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 8. Februar 2022, 16:34 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Grundsätzliche Überlegungen ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Grundsätzliche Überlegungen ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Für dieses Beispiel sind folgende Ideen wichtig:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Für dieses Beispiel sind folgende Ideen wichtig:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Was sind [[Ereignisse]] und welche gibt es beim micro:bit?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Was sind [[Ereignisse]] und welche gibt es beim &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;BBC &lt;/ins&gt;micro:bit?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie funktionieren [[Bedingte_Anweisungen|Abfragen]] und wie können damit Vergleiche verwendet werden?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie funktionieren [[Bedingte_Anweisungen|Abfragen]] und wie können damit Vergleiche verwendet werden?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie kann ich Kontakt an den Pins des BBC micro:bit abfragen? Wie können dort &amp;quot;Schalter&amp;quot; angeschlossen werden?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie kann ich Kontakt an den Pins des BBC micro:bit abfragen? Wie können dort &amp;quot;Schalter&amp;quot; angeschlossen werden?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Tipps und Tricks ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Tipps und Tricks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Beim Starten &lt;/del&gt;des Programms&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, was müssen wir &lt;/del&gt;alles festlegen?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Was müssen wir beim Start &lt;/ins&gt;des Programms alles festlegen?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Denke immer daran: Sicherheit geht vor - alle Variablen initialisieren, d.h. auf einen vernünftigen Startwert setzen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Denke immer daran: Sicherheit geht vor - alle Variablen initialisieren, d.h. auf einen vernünftigen Startwert setzen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Was man natürlich auch braucht, ist eine Variable, mit der man sich merken kann, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wieviele &lt;/del&gt;Kontakt es gegeben hat.&amp;lt;spoiler text=&quot;Hinweis&quot;&amp;gt;Diese sollte man zu Beginn und auch beim Zurücksetzen des Spiels („Reset“) auf &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Null &lt;/del&gt;setzen, bei einem Kontakt um eins erhöhen und beim „Schummelknopf“ um eins erniedrigen.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Was man natürlich auch braucht, ist eine Variable, mit der man sich merken kann, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wie viele &lt;/ins&gt;Kontakt es gegeben hat.&amp;lt;spoiler text=&quot;Hinweis&quot;&amp;gt;Diese sollte man zu Beginn und auch beim Zurücksetzen des Spiels („Reset“) auf &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;null &lt;/ins&gt;setzen, bei einem Kontakt um eins erhöhen und beim „Schummelknopf“ um eins erniedrigen.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Am besten verwendest du „Ereignisse“, die man abfragen kann.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Am besten verwendest du „Ereignisse“, die man abfragen kann.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Je nach persönlichem Geschmack können diese &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;natürlich &lt;/del&gt;auch anders eingesetzt werden&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;als hier in der Musterlösung. Also wähle beliebige Tasten für die jeweiligen Funktionen aus!  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Je nach persönlichem Geschmack können diese auch anders eingesetzt werden als hier in der Musterlösung. Also wähle beliebige Tasten für die jeweiligen Funktionen aus!  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Wie können wir nun das Zählen der &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kontakt &lt;/del&gt;beim Berühren der Drähte zählen?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Wie können wir nun das Zählen der &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kontakte &lt;/ins&gt;beim Berühren der Drähte zählen?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Das Prüfen auf einen Kontakt macht der BBC micro:bit für uns automatisch, wenn wir das richtige &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ereigenis &lt;/del&gt;verwenden. Welches könnte das sein? Schau einmal welche Möglichkeiten die makecode-Webseite &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dir &lt;/del&gt;anbietet!&amp;lt;spoiler&amp;gt;Das nennt sich nur etwas seltsam und heißt &quot;Wenn P0 gedrückt&quot;, denn ein Schalter oder Knopf den man anschließen könnte ist im Endeffekt auch nichts anderes als 2 Drähte die sich berühren.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Das Prüfen auf einen Kontakt macht der BBC micro:bit für uns automatisch, wenn wir das richtige &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ereignis &lt;/ins&gt;verwenden. Welches könnte das sein? Schau einmal&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;welche Möglichkeiten die makecode-Webseite &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dir &lt;/ins&gt;anbietet!&amp;lt;spoiler&amp;gt;Das nennt sich nur etwas seltsam und heißt &quot;Wenn P0 gedrückt&quot;, denn ein Schalter oder Knopf&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;den man anschließen könnte&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;ist im Endeffekt auch nichts anderes als 2 Drähte die sich berühren.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Damit wird ein Kontakt zwischen Drahtschleife und Drahtlabyrinth festgestellt, wenn alles richtig verbunden ist. Hier sollte auch der Kontakt mitgezählt werden und vielleicht kurz ein Symbol und/oder ein Geräusch ausgegeben werden.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Damit wird ein Kontakt zwischen Drahtschleife und Drahtlabyrinth festgestellt, wenn alles richtig verbunden ist. Hier sollte auch der Kontakt mitgezählt werden und vielleicht kurz ein Symbol und/oder ein Geräusch ausgegeben werden.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Eine Möglichkeit zum Zurücksetzen des Spiels wäre noch gut.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Eine Möglichkeit zum Zurücksetzen des Spiels wäre noch gut.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Was muss man dafür eigentlich machen? Ist es nicht das gleiche wie beim Einschalten des BBC micro:bit?&amp;lt;spoiler&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Also &lt;/del&gt;Zähler zurücksetzen und auch einen Text anzeigen, dass es jetzt losgehen kann.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Was muss man dafür eigentlich machen? Ist es nicht das gleiche wie beim Einschalten des BBC micro:bit?&amp;lt;spoiler&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Man muss also den &lt;/ins&gt;Zähler zurücksetzen und auch einen Text anzeigen, dass es jetzt losgehen kann.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Zwei Möglichkeiten sollte es noch geben (die &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zB &lt;/del&gt;über das Drücken jeweils einer der beiden Knöpfe gemacht werden könnte):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Zwei Möglichkeiten sollte es noch geben (die &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;z.B. &lt;/ins&gt;über das Drücken jeweils einer der beiden Knöpfe gemacht werden könnte):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Wir müssen am Ende ausgeben &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wieviele &lt;/del&gt;Berührungen es gegeben hat.&amp;lt;spoiler&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zB &lt;/del&gt;&quot;Wenn Knopf A gedrückt&quot; gib die Anzahl der gezählten Kontakte für eine bestimmte Zeit aus und lösche dann den Bildschirm wieder.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Wir müssen am Ende ausgeben&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, wie viele &lt;/ins&gt;Berührungen es gegeben hat.&amp;lt;spoiler&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;z.B. &lt;/ins&gt;&quot;Wenn Knopf A gedrückt&quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;gib die Anzahl der gezählten Kontakte für eine bestimmte Zeit aus und lösche dann den Bildschirm wieder.&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Je nach Belieben vielleicht noch eine &lt;/del&gt;Möglichkeit zum Schummeln, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;als das &lt;/del&gt;nicht ganz richtig gezählt wird?&amp;lt;spoiler&amp;gt;Psst, wenn man das niemandem sagt, könnte &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;zB &lt;/del&gt;durch Knopf B (ohne &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;das &lt;/del&gt;etwas am Bildschirm ausgegeben wird) der Zähler um eins verkleinert werden … ;)&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Nicht vergessen auf die &lt;/ins&gt;Möglichkeit zum Schummeln, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;also dass &lt;/ins&gt;nicht ganz richtig gezählt wird?&amp;lt;spoiler&amp;gt;Psst, wenn man das niemandem sagt, könnte &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;z.B. &lt;/ins&gt;durch Knopf B (ohne &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dass &lt;/ins&gt;etwas am Bildschirm ausgegeben wird) der Zähler um eins verkleinert werden … ;)&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Komplettlösungen ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Komplettlösungen ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Beim Starten &lt;/del&gt;des Programms&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, was müssen wir &lt;/del&gt;alles festlegen?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Was müssen wir beim Start &lt;/ins&gt;des Programms alles festlegen?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Wir sollten die &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wichten &lt;/del&gt;Variablen auf &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Null &lt;/del&gt;setzen und &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vielleicht auch &lt;/del&gt;einen Text ausgeben um anzuzeigen, dass es los geht. &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Wir sollten die &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wichtigen &lt;/ins&gt;Variablen auf &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;null &lt;/ins&gt;setzen und einen Text ausgeben&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;um anzuzeigen, dass es los geht. &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AnzahlKontakte = 0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AnzahlKontakte = 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;basic.showString(&amp;quot;Los!&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;basic.showString(&amp;quot;Los!&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Wie können wir ein Zurücksetzen und Neustarten des Spiels mit den Tasten A und B bewerkstelligen?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Wie können wir ein Zurücksetzen und Neustarten des Spiels mit den Tasten A und B bewerkstelligen?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Eigenlich &lt;/del&gt;ist das ja das gleiche, wie wenn man den BBC micro:bit einschaltet und er startet ... &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Eigentlich &lt;/ins&gt;ist das ja das gleiche, wie wenn man den BBC micro:bit einschaltet und er startet ... &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onButtonPressed(Button.AB, function () {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onButtonPressed(Button.AB, function () {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     AnzahlKontakte = 0&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     AnzahlKontakte = 0&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot;&gt;Zeile 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Und was muss passieren, wenn das Spiel läuft?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Und was muss passieren, wenn das Spiel läuft?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Wenn das Programm läuft, muss nur noch bei jedem Kontakt der beiden Drähte&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;die Variable für das Mitzählen der &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kontakt &lt;/del&gt;um eins erhöht werden. Vielleicht wäre es auch noch gut, (kurz) ein Symbol anzuzeigen, wenn es zu einem Kontakt kommt und eventuell auch einen Ton auszugeben.&amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Wenn das Programm läuft, muss nur noch bei jedem Kontakt der beiden Drähte die Variable für das Mitzählen der &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kontakte &lt;/ins&gt;um eins erhöht werden. Vielleicht wäre es auch noch gut, (kurz) ein Symbol anzuzeigen, wenn es zu einem Kontakt kommt und eventuell auch einen Ton auszugeben.&amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onPinPressed(TouchPin.P0, function () {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onPinPressed(TouchPin.P0, function () {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     soundExpression.giggle.play()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     soundExpression.giggle.play()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l44&quot;&gt;Zeile 44:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 44:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Wenn wir nun am Ende des Labyrinths angelangt sind, wäre es gut zu wissen, wie der Endstand ist.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Wenn wir nun am Ende des Labyrinths angelangt sind, wäre es gut zu wissen, wie der Endstand ist.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Da nehmen wir am einfachsten eine der beiden Tasten und zeigen den Wert der &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Zählvaribale &lt;/del&gt;an. &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Da nehmen wir am einfachsten eine der beiden Tasten und zeigen den Wert der &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Zählvariable &lt;/ins&gt;an. &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onButtonPressed(Button.A, function () {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onButtonPressed(Button.A, function () {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     basic.showString(&amp;quot;&amp;quot; + (AnzahlKontakte))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     basic.showString(&amp;quot;&amp;quot; + (AnzahlKontakte))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot;&gt;Zeile 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Da war noch was mit Schummeln ... wie könnte man bei so einem Spiel schummeln einbauen?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; Da war noch was mit Schummeln ... wie könnte man bei so einem Spiel schummeln einbauen?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Wir hätten ja noch einen Knopf frei, den man dafür verwenden kann. Nicht ganz so offensichtliches &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Schummel &lt;/del&gt;wäre es, wenn man die Anzahl der gezählten &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kontakt &lt;/del&gt;einfach um den Wert 1 &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;erniedrigt &lt;/del&gt;... &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;: Wir hätten ja noch einen Knopf frei, den man dafür verwenden kann. Nicht ganz so offensichtliches &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Schummeln &lt;/ins&gt;wäre es, wenn man die Anzahl der gezählten &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Kontakte &lt;/ins&gt;einfach um den Wert 1 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;verringert &lt;/ins&gt;... &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;&amp;lt;pre id=&quot;pre4&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onButtonPressed(Button.B, function () {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;input.onButtonPressed(Button.B, function () {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     AnzahlKontakte += -1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     AnzahlKontakte += -1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key microbit:diff:1.41:old-7089:rev-7303:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=Hei%C3%9Fer_Draht_L%C3%B6sung&amp;diff=7089&amp;oldid=prev</id>
		<title>Harald.burgsteiner am 18. Januar 2022 um 14:39 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=Hei%C3%9Fer_Draht_L%C3%B6sung&amp;diff=7089&amp;oldid=prev"/>
		<updated>2022-01-18T14:39:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 18. Januar 2022, 16:39 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Zeile 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Für dieses Beispiel sind folgende Ideen wichtig:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Für dieses Beispiel sind folgende Ideen wichtig:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Was sind [[Ereignisse]] und welche gibt es beim micro:bit?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Was sind [[Ereignisse]] und welche gibt es beim micro:bit?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie funktionieren [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Alternativen&lt;/del&gt;|Abfragen]] und wie können &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dort &lt;/del&gt;Vergleiche verwendet werden?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie funktionieren [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Bedingte_Anweisungen&lt;/ins&gt;|Abfragen]] und wie können &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;damit &lt;/ins&gt;Vergleiche verwendet werden?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie kann ich Kontakt an den Pins des BBC micro:bit abfragen? Wie können dort &amp;quot;Schalter&amp;quot; angeschlossen werden?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Wie kann ich Kontakt an den Pins des BBC micro:bit abfragen? Wie können dort &amp;quot;Schalter&amp;quot; angeschlossen werden?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key microbit:diff:1.41:old-6948:rev-7089:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=Hei%C3%9Fer_Draht_L%C3%B6sung&amp;diff=6948&amp;oldid=prev</id>
		<title>Harald.burgsteiner: Die Seite wurde neu angelegt: „== Grundsätzliche Überlegungen == Für dieses Beispiel sind folgende Ideen wichtig: * Was sind Ereignisse und welche gibt es beim micro:bit? * Wie funkti…“</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=Hei%C3%9Fer_Draht_L%C3%B6sung&amp;diff=6948&amp;oldid=prev"/>
		<updated>2022-01-05T12:24:32Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== Grundsätzliche Überlegungen == Für dieses Beispiel sind folgende Ideen wichtig: * Was sind &lt;a href=&quot;/wiki/Ereignisse&quot; title=&quot;Ereignisse&quot;&gt;Ereignisse&lt;/a&gt; und welche gibt es beim micro:bit? * Wie funkti…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Grundsätzliche Überlegungen ==&lt;br /&gt;
Für dieses Beispiel sind folgende Ideen wichtig:&lt;br /&gt;
* Was sind [[Ereignisse]] und welche gibt es beim micro:bit?&lt;br /&gt;
* Wie funktionieren [[Alternativen|Abfragen]] und wie können dort Vergleiche verwendet werden?&lt;br /&gt;
* Wie kann ich Kontakt an den Pins des BBC micro:bit abfragen? Wie können dort &amp;quot;Schalter&amp;quot; angeschlossen werden?&lt;br /&gt;
&lt;br /&gt;
== Tipps und Tricks ==&lt;br /&gt;
; Beim Starten des Programms, was müssen wir alles festlegen?&lt;br /&gt;
: Denke immer daran: Sicherheit geht vor - alle Variablen initialisieren, d.h. auf einen vernünftigen Startwert setzen.&lt;br /&gt;
: Was man natürlich auch braucht, ist eine Variable, mit der man sich merken kann, wieviele Kontakt es gegeben hat.&amp;lt;spoiler text=&amp;quot;Hinweis&amp;quot;&amp;gt;Diese sollte man zu Beginn und auch beim Zurücksetzen des Spiels („Reset“) auf Null setzen, bei einem Kontakt um eins erhöhen und beim „Schummelknopf“ um eins erniedrigen.&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Am besten verwendest du „Ereignisse“, die man abfragen kann.&lt;br /&gt;
:Je nach persönlichem Geschmack können diese natürlich auch anders eingesetzt werden, als hier in der Musterlösung. Also wähle beliebige Tasten für die jeweiligen Funktionen aus! &lt;br /&gt;
; Wie können wir nun das Zählen der Kontakt beim Berühren der Drähte zählen?&lt;br /&gt;
: Das Prüfen auf einen Kontakt macht der BBC micro:bit für uns automatisch, wenn wir das richtige Ereigenis verwenden. Welches könnte das sein? Schau einmal welche Möglichkeiten die makecode-Webseite Dir anbietet!&amp;lt;spoiler&amp;gt;Das nennt sich nur etwas seltsam und heißt &amp;quot;Wenn P0 gedrückt&amp;quot;, denn ein Schalter oder Knopf den man anschließen könnte ist im Endeffekt auch nichts anderes als 2 Drähte die sich berühren.&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
:Damit wird ein Kontakt zwischen Drahtschleife und Drahtlabyrinth festgestellt, wenn alles richtig verbunden ist. Hier sollte auch der Kontakt mitgezählt werden und vielleicht kurz ein Symbol und/oder ein Geräusch ausgegeben werden.&lt;br /&gt;
; Eine Möglichkeit zum Zurücksetzen des Spiels wäre noch gut.&lt;br /&gt;
: Was muss man dafür eigentlich machen? Ist es nicht das gleiche wie beim Einschalten des BBC micro:bit?&amp;lt;spoiler&amp;gt;Also Zähler zurücksetzen und auch einen Text anzeigen, dass es jetzt losgehen kann.&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Zwei Möglichkeiten sollte es noch geben (die zB über das Drücken jeweils einer der beiden Knöpfe gemacht werden könnte):&lt;br /&gt;
: Wir müssen am Ende ausgeben wieviele Berührungen es gegeben hat.&amp;lt;spoiler&amp;gt;zB &amp;quot;Wenn Knopf A gedrückt&amp;quot; gib die Anzahl der gezählten Kontakte für eine bestimmte Zeit aus und lösche dann den Bildschirm wieder.&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
: Je nach Belieben vielleicht noch eine Möglichkeit zum Schummeln, als das nicht ganz richtig gezählt wird?&amp;lt;spoiler&amp;gt;Psst, wenn man das niemandem sagt, könnte zB durch Knopf B (ohne das etwas am Bildschirm ausgegeben wird) der Zähler um eins verkleinert werden … ;)&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Komplettlösungen ==&lt;br /&gt;
; Beim Starten des Programms, was müssen wir alles festlegen?&lt;br /&gt;
: Wir sollten die wichten Variablen auf Null setzen und vielleicht auch einen Text ausgeben um anzuzeigen, dass es los geht. &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;&amp;lt;pre id=&amp;quot;pre4&amp;quot;&amp;gt;&lt;br /&gt;
AnzahlKontakte = 0&lt;br /&gt;
basic.showString(&amp;quot;Los!&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Wie können wir ein Zurücksetzen und Neustarten des Spiels mit den Tasten A und B bewerkstelligen?&lt;br /&gt;
: Eigenlich ist das ja das gleiche, wie wenn man den BBC micro:bit einschaltet und er startet ... &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;&amp;lt;pre id=&amp;quot;pre4&amp;quot;&amp;gt;&lt;br /&gt;
input.onButtonPressed(Button.AB, function () {&lt;br /&gt;
    AnzahlKontakte = 0&lt;br /&gt;
    basic.showString(&amp;quot;Los!&amp;quot;)&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Und was muss passieren, wenn das Spiel läuft?&lt;br /&gt;
:Wenn das Programm läuft, muss nur noch bei jedem Kontakt der beiden Drähte, die Variable für das Mitzählen der Kontakt um eins erhöht werden. Vielleicht wäre es auch noch gut, (kurz) ein Symbol anzuzeigen, wenn es zu einem Kontakt kommt und eventuell auch einen Ton auszugeben.&amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;&amp;lt;pre id=&amp;quot;pre4&amp;quot;&amp;gt;&lt;br /&gt;
input.onPinPressed(TouchPin.P0, function () {&lt;br /&gt;
    soundExpression.giggle.play()&lt;br /&gt;
    AnzahlKontakte += 1&lt;br /&gt;
    basic.showIcon(IconNames.No)&lt;br /&gt;
    basic.pause(500)&lt;br /&gt;
    basic.clearScreen()&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Wenn wir nun am Ende des Labyrinths angelangt sind, wäre es gut zu wissen, wie der Endstand ist.&lt;br /&gt;
: Da nehmen wir am einfachsten eine der beiden Tasten und zeigen den Wert der Zählvaribale an. &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;&amp;lt;pre id=&amp;quot;pre4&amp;quot;&amp;gt;&lt;br /&gt;
input.onButtonPressed(Button.A, function () {&lt;br /&gt;
    basic.showString(&amp;quot;&amp;quot; + (AnzahlKontakte))&lt;br /&gt;
    basic.pause(2000)&lt;br /&gt;
    basic.clearScreen()&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Da war noch was mit Schummeln ... wie könnte man bei so einem Spiel schummeln einbauen?&lt;br /&gt;
: Wir hätten ja noch einen Knopf frei, den man dafür verwenden kann. Nicht ganz so offensichtliches Schummel wäre es, wenn man die Anzahl der gezählten Kontakt einfach um den Wert 1 erniedrigt ... &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;&amp;lt;pre id=&amp;quot;pre4&amp;quot;&amp;gt;&lt;br /&gt;
input.onButtonPressed(Button.B, function () {&lt;br /&gt;
    AnzahlKontakte += -1&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;htmlet&amp;gt;makecode_embed&amp;lt;/htmlet&amp;gt;&lt;/div&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
</feed>