<?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=CleverRaten_L%C3%B6sung</id>
	<title>CleverRaten 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=CleverRaten_L%C3%B6sung"/>
	<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;action=history"/>
	<updated>2026-04-29T12:45:28Z</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=CleverRaten_L%C3%B6sung&amp;diff=4318&amp;oldid=prev</id>
		<title>Harald.burgsteiner am 20. Juli 2018 um 10:43 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=4318&amp;oldid=prev"/>
		<updated>2018-07-20T10:43:16Z</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 20. Juli 2018, 12:43 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-l42&quot;&gt;Zeile 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 42:&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;: Das kann zum Beispiel so aussehen: &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - Nach Rechts.png|border|350px|Was passieren könnte, wenn nach rechts geneigt wird]]&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;: Das kann zum Beispiel so aussehen: &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - Nach Rechts.png|border|350px|Was passieren könnte, wenn nach rechts geneigt wird]]&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 die Tasten A und B gleichzeitig gedrückt werden, soll die Anzahl der Versuche 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;; Wenn die Tasten A und B gleichzeitig gedrückt werden, soll die Anzahl der Versuche ausgegeben werden.&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;: Der Programmteil könnte inklusive Abschlusstext zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - AB &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gedrückt&lt;/del&gt;.png|border|500px|Was passieren könnte, wenn die Tasten A und B gleichzeitig gedrückt 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;: Der Programmteil könnte inklusive Abschlusstext zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - AB &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gedrueckt&lt;/ins&gt;.png|border|500px|Was passieren könnte, wenn die Tasten A und B gleichzeitig gedrückt 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;div&gt;; Was muss die zentrale Funktion alles machen, die die neue Zahl innerhalb des aktuellen Bereichs berechnet?&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 muss die zentrale Funktion alles machen, die die neue Zahl innerhalb des aktuellen Bereichs berechnet?&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;: Wir raten einmal, das heißt, die Anzahl der Versuche muss um eins erhöht 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;: Wir raten einmal, das heißt, die Anzahl der Versuche muss um eins erhöht werden.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key microbit:diff:1.41:old-249:rev-4318:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=249&amp;oldid=prev</id>
		<title>Harald.burgsteiner: /* Tipps und Tricks */</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=249&amp;oldid=prev"/>
		<updated>2018-04-10T11:34:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tipps und Tricks&lt;/span&gt;&lt;/span&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 10. April 2018, 13: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-l18&quot;&gt;Zeile 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 18:&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;; Warum ist es sinnvoll eine [[Funktionen|Funktion]] zu verwenden?&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;; Warum ist es sinnvoll eine [[Funktionen|Funktion]] zu verwenden?&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;: Beobachte, dass wir nun schon bei drei verschiedenen Ereignissen (beim Start, nach links neigen, nach rechts neigen) immer das gleiche machen müssen&amp;amp;#58; einmal Raten im Bereich &amp;quot;von&amp;quot;-&amp;quot;bis&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;: Beobachte, dass wir nun schon bei drei verschiedenen Ereignissen (beim Start, nach links neigen, nach rechts neigen) immer das gleiche machen müssen&amp;amp;#58; einmal Raten im Bereich &amp;quot;von&amp;quot;-&amp;quot;bis&amp;quot;.&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;: Nun könnte man einfach an allen drei Stellen jeweils den gleichen Programmcode hinschreiben. &amp;lt;spoiler&amp;gt;Zum Beispiel: zähle bei der Anzahl der Versuche eins dazu, berechne neue Ratezahl und gib sie aus.&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;: Nun könnte man einfach an allen drei Stellen jeweils den gleichen Programmcode hinschreiben. &amp;lt;spoiler&amp;gt;Zum Beispiel: zähle bei der Anzahl der Versuche eins dazu, berechne &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;die &lt;/ins&gt;neue Ratezahl und gib sie aus.&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;: Eleganter ist es, statt dessen eine Funktion zu definieren, die an diesen drei Stellen aufgerufen wird.&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;: Eleganter ist es, statt dessen eine Funktion zu definieren, die an diesen drei Stellen aufgerufen wird.&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;: Das hat die Vorteile, dass das Programm kürzer und übersichtlicher wird, man weniger schreiben muss und dass, wenn man einen Fehler sucht oder etwas ändern möchte, dies nur an einer und nicht an drei Stellen machen muss.&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;: Das hat die Vorteile, dass das Programm kürzer und übersichtlicher wird, man weniger schreiben muss und dass, wenn man einen Fehler sucht oder etwas ändern möchte, dies nur an einer und nicht an drei Stellen machen muss.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key microbit:diff:1.41:old-248:rev-249:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=248&amp;oldid=prev</id>
		<title>Harald.burgsteiner: /* Tipps und Tricks */</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=248&amp;oldid=prev"/>
		<updated>2018-04-10T11:34:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Tipps und Tricks&lt;/span&gt;&lt;/span&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 10. April 2018, 13: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-l3&quot;&gt;Zeile 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 3:&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;: Wir müssen alle [[Variablen]] auf einen passenden Startwert setzen. &amp;lt;spoiler&amp;gt;In unserer Beispielslösung haben wir drei Variablen&amp;amp;#58; die Variable &amp;quot;von&amp;quot; (Start des aktuellen Ratebereichs) wird auf 1 gesetzt, die Variable &amp;quot;bis&amp;quot; (Ende des aktuellen Ratebereichs) wird auf 100 gesetzt und die &amp;quot;Anzahl Versuche&amp;quot; wird auf 0 gesetzt.&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;: Wir müssen alle [[Variablen]] auf einen passenden Startwert setzen. &amp;lt;spoiler&amp;gt;In unserer Beispielslösung haben wir drei Variablen&amp;amp;#58; die Variable &amp;quot;von&amp;quot; (Start des aktuellen Ratebereichs) wird auf 1 gesetzt, die Variable &amp;quot;bis&amp;quot; (Ende des aktuellen Ratebereichs) wird auf 100 gesetzt und die &amp;quot;Anzahl Versuche&amp;quot; wird auf 0 gesetzt.&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;: Außerdem könnten wir einen Begrüßungstext oder ein Symbol ausgeben, damit man weiß, dass das Programm läuft. Überlege dir, wie dein eigener Startbildschirm aussehen soll!&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;: Außerdem könnten wir einen Begrüßungstext oder ein Symbol ausgeben, damit man weiß, dass das Programm läuft. Überlege dir, wie dein eigener Startbildschirm aussehen soll!&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;Nun &lt;/del&gt;können wir &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gleich &lt;/del&gt;unseren ersten Rateversuch starten!&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;Außderdem &lt;/ins&gt;können wir &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sofort &lt;/ins&gt;unseren ersten Rateversuch starten!&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;; Was soll passieren, wenn der micro&amp;amp;#58;bit nach links geneigt wird?&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 soll passieren, wenn der micro&amp;amp;#58;bit nach links geneigt wird?&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;: Zur Erinnerung: die gesuchte Zahl ist damit &amp;#039;&amp;#039;&amp;#039;kleiner&amp;#039;&amp;#039;&amp;#039; als die zuletzt geratene.&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;: Zur Erinnerung: die gesuchte Zahl ist damit &amp;#039;&amp;#039;&amp;#039;kleiner&amp;#039;&amp;#039;&amp;#039; als die zuletzt geratene.&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;: Wir wissen auch, dass es &amp;#039;&amp;#039;nicht&amp;#039;&amp;#039; die geratene Zahl sein 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;: Wir wissen auch, dass es &amp;#039;&amp;#039;nicht&amp;#039;&amp;#039; die geratene Zahl sein 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;: Somit können wir unseren Ratebereich neu eingrenzen. &amp;lt;spoiler&amp;gt;Der Startwert kann der gleiche bleiben, der Endwert ist um eins kleiner als die zuletzt geratene Zahl&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;: Somit können wir unseren Ratebereich neu eingrenzen. &amp;lt;spoiler&amp;gt;Der Startwert &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;des Ratebereichs &lt;/ins&gt;kann der gleiche bleiben, der Endwert ist um eins kleiner als die zuletzt geratene Zahl&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 wir starten unseren nächsten Rateversuch!&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 wir starten unseren nächsten Rateversuch!&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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Zeile 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 17:&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;; Warum ist es sinnvoll eine [[Funktionen|Funktion]] zu verwenden?&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;; Warum ist es sinnvoll eine [[Funktionen|Funktion]] zu verwenden?&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;: Beobachte, dass wir nun schon bei drei verschiedenen Ereignissen (beim Start, nach links neigen, nach rechts neigen) immer das gleiche machen müssen&amp;amp;#58; einmal &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;raten &lt;/del&gt;im Bereich &quot;von&quot;-&quot;bis&quot;.&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;: Beobachte, dass wir nun schon bei drei verschiedenen Ereignissen (beim Start, nach links neigen, nach rechts neigen) immer das gleiche machen müssen&amp;amp;#58; einmal &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Raten &lt;/ins&gt;im Bereich &quot;von&quot;-&quot;bis&quot;.&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;: Nun könnte man einfach an allen drei Stellen jeweils den gleichen Programmcode hinschreiben.&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;: Nun könnte man einfach an allen drei Stellen jeweils den gleichen Programmcode hinschreiben. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;spoiler&amp;gt;Zum Beispiel: zähle bei der Anzahl der Versuche eins dazu, berechne neue Ratezahl und gib sie aus.&amp;lt;/spoiler&amp;gt;&lt;/ins&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;: Eleganter ist es, statt dessen eine Funktion zu definieren, die an diesen drei Stellen aufgerufen wird.&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;: Eleganter ist es, statt dessen eine Funktion zu definieren, die an diesen drei Stellen aufgerufen wird.&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 hat die Vorteile, dass das Programm kürzer und übersichtlicher wird, man weniger schreiben muss und dass, wenn man einen Fehler sucht oder etwas ändern möchte, dies nur an einer &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;machen muss &lt;/del&gt;und nicht an drei Stellen.&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 hat die Vorteile, dass das Programm kürzer und übersichtlicher wird, man weniger schreiben muss und dass, wenn man einen Fehler sucht oder etwas ändern möchte, dies nur an einer und nicht an drei Stellen &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;machen muss&lt;/ins&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; 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 bei jedem Rateversuch alles machen?&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 bei jedem Rateversuch alles machen&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;? Was könnte in so einer Funktion stehen&lt;/ins&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;: Die Anzahl der Versuche um eins erhöhen.&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;: Die Anzahl der Versuche um eins erhöhen.&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;: Die Zahl innerhalb des Bereiches &quot;von&quot;-&quot;bis&quot; berechnen, die wir als nächsten Rateversuch ausgeben wollen. &amp;lt;spoiler&amp;gt;Verwenden wir doch einfach &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;des &lt;/del&gt;arithmetischen Mittelwert des Ratebereichs: zahl = (von + bis) / 2&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;: Die Zahl innerhalb des Bereiches &quot;von&quot;-&quot;bis&quot; berechnen, die wir als nächsten Rateversuch ausgeben wollen. &amp;lt;spoiler&amp;gt;Verwenden wir doch einfach &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;den &lt;/ins&gt;arithmetischen Mittelwert des Ratebereichs: zahl = (von + bis) / 2&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;: Die Zahl ausgeben. Fertig.&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;: Die Zahl ausgeben. Fertig.&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;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=244&amp;oldid=prev</id>
		<title>Harald.burgsteiner am 9. April 2018 um 16:06 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=244&amp;oldid=prev"/>
		<updated>2018-04-09T16:06:18Z</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 9. April 2018, 18:06 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-l32&quot;&gt;Zeile 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 32:&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;&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;; Beim Starten des Programms, was müssen wir alles festlegen?&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;; Beim Starten des Programms, was müssen wir 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;: Eine mögliche Lösung für den Start? &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Beim Start.png|border|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;350px&lt;/del&gt;|Was passieren könnte, wenn das Programm startet]]&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;: Eine mögliche Lösung für den Start? &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Beim Start.png|border|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;400px&lt;/ins&gt;|Was passieren könnte, wenn das Programm startet]]&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 der micro&amp;amp;#58;bit nach links geneigt wird?&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 der micro&amp;amp;#58;bit nach links geneigt wird?&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;: Es wird der &amp;quot;linke Teil&amp;quot; des bisherigen Ratebereichs als neuer Ratebereich verwendet.&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;: Es wird der &amp;quot;linke Teil&amp;quot; des bisherigen Ratebereichs als neuer Ratebereich verwendet.&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;: Die Funktion &amp;quot;rateZahl&amp;quot; wird aufgerufen.&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;: Die Funktion &amp;quot;rateZahl&amp;quot; wird aufgerufen.&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 kann zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Nach Links.png|border|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;500px&lt;/del&gt;|Was passieren könnte, wenn nach links geneigt wird]]&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 kann zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Nach Links.png|border|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;350px&lt;/ins&gt;|Was passieren könnte, wenn nach links geneigt wird]]&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 der micro&amp;amp;#58;bit nach rechts geneigt wird?&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 der micro&amp;amp;#58;bit nach rechts geneigt wird?&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;: Es wird der &amp;quot;rechte Teil&amp;quot; des bisherigen Ratebereichs als neuer Ratebereich verwendet.&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;: Es wird der &amp;quot;rechte Teil&amp;quot; des bisherigen Ratebereichs als neuer Ratebereich verwendet.&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;: Die Funktion &amp;quot;rateZahl&amp;quot; wird aufgerufen.&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;: Die Funktion &amp;quot;rateZahl&amp;quot; wird aufgerufen.&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 kann zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Nach Rechts.png|border|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;500px&lt;/del&gt;|Was passieren könnte, wenn nach rechts geneigt wird]]&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 kann zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Nach Rechts.png|border|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;350px&lt;/ins&gt;|Was passieren könnte, wenn nach rechts geneigt wird]]&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 die Tasten A und B gleichzeitig gedrückt werden, soll die Anzahl der Versuche 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;; Wenn die Tasten A und B gleichzeitig gedrückt werden, soll die Anzahl der Versuche ausgegeben werden.&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;: Der Programmteil könnte inklusive Abschlusstext zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - AB gedrückt.png|border|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;800px&lt;/del&gt;|Was passieren könnte, wenn die Tasten A und B gleichzeitig gedrückt 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;: Der Programmteil könnte inklusive Abschlusstext zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - AB gedrückt.png|border|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;500px&lt;/ins&gt;|Was passieren könnte, wenn die Tasten A und B gleichzeitig gedrückt 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;div&gt;; Was muss die zentrale Funktion alles machen, die die neue Zahl innerhalb des aktuellen Bereichs berechnet?&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 muss die zentrale Funktion alles machen, die die neue Zahl innerhalb des aktuellen Bereichs berechnet?&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;: Wir raten einmal, das heißt, die Anzahl der Versuche muss um eins erhöht 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;: Wir raten einmal, das heißt, die Anzahl der Versuche muss um eins erhöht 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;: Die neue Zahl wird aus den aktuellen Bereichsgrenzen berechnet.&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;: Die neue Zahl wird aus den aktuellen Bereichsgrenzen berechnet.&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;: Die berechnete Zahl wird ausgegeben.&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;: Die berechnete Zahl wird ausgegeben.&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;: Der Programmteil könnte nun zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Funktion.png|border|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;800px&lt;/del&gt;|Die Funktion zur Berechnung und Ausgabe der Zahl]]&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;: Der Programmteil könnte nun zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Funktion.png|border|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;550px&lt;/ins&gt;|Die Funktion zur Berechnung und Ausgabe der Zahl]]&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key microbit:diff:1.41:old-238:rev-244:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=238&amp;oldid=prev</id>
		<title>Harald.burgsteiner am 9. April 2018 um 15:57 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=238&amp;oldid=prev"/>
		<updated>2018-04-09T15:57:21Z</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 9. April 2018, 17:57 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-l43&quot;&gt;Zeile 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 43:&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 die Tasten A und B gleichzeitig gedrückt werden, soll die Anzahl der Versuche 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;; Wenn die Tasten A und B gleichzeitig gedrückt werden, soll die Anzahl der Versuche 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;: Der Programmteil könnte inklusive Abschlusstext zum Beispiel so aussehen: &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - AB gedrückt.png|border|800px|Was passieren könnte, wenn die Tasten A und B gleichzeitig gedrückt werden]]&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;: Der Programmteil könnte inklusive Abschlusstext zum Beispiel so aussehen: &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - AB gedrückt.png|border|800px|Was passieren könnte, wenn die Tasten A und B gleichzeitig gedrückt werden]]&amp;lt;/spoiler&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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 muss die zentrale Funktion alles machen, die die neue Zahl innerhalb des aktuellen Bereichs berechnet?&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;: Wir raten einmal, das heißt, die Anzahl der Versuche muss um eins erhöht werden.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;: Die neue Zahl wird aus den aktuellen Bereichsgrenzen berechnet.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;: Die berechnete Zahl wird ausgegeben.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;: Der Programmteil könnte nun zum Beispiel so aussehen: &amp;lt;spoiler text=&quot;Lösung&quot;&amp;gt;[[Datei:CleverRaten - Funktion.png|border|800px|Die Funktion zur Berechnung und Ausgabe der Zahl]]&amp;lt;/spoiler&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=237&amp;oldid=prev</id>
		<title>Harald.burgsteiner am 9. April 2018 um 15:53 Uhr</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=237&amp;oldid=prev"/>
		<updated>2018-04-09T15:53:25Z</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 9. April 2018, 17:53 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-l8&quot;&gt;Zeile 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 8:&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;: Zur Erinnerung: die gesuchte Zahl ist damit &amp;#039;&amp;#039;&amp;#039;kleiner&amp;#039;&amp;#039;&amp;#039; als die zuletzt geratene.&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;: Zur Erinnerung: die gesuchte Zahl ist damit &amp;#039;&amp;#039;&amp;#039;kleiner&amp;#039;&amp;#039;&amp;#039; als die zuletzt geratene.&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;: Wir wissen auch, dass es &amp;#039;&amp;#039;nicht&amp;#039;&amp;#039; die geratene Zahl sein 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;: Wir wissen auch, dass es &amp;#039;&amp;#039;nicht&amp;#039;&amp;#039; die geratene Zahl sein 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;: Somit können wir unseren Ratebereich neu eingrenzen.&amp;lt;spoiler&amp;gt;Der Startwert kann der gleiche bleiben, der Endwert ist um eins kleiner als die zuletzt geratene Zahl&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;: Somit können wir unseren Ratebereich neu eingrenzen. &amp;lt;spoiler&amp;gt;Der Startwert kann der gleiche bleiben, der Endwert ist um eins kleiner als die zuletzt geratene Zahl&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 wir starten unseren nächsten Rateversuch!&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 wir starten unseren nächsten Rateversuch!&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;; Was soll passieren, wenn der micro&amp;amp;#58;bit nach rechts geneigt wird?&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 soll passieren, wenn der micro&amp;amp;#58;bit nach rechts geneigt wird?&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;: Eigentlich fast das gleiche wie beim nach links Neigen.&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;: Eigentlich fast das gleiche wie beim nach links Neigen.&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 wissen wir (rechts bedeutet, die gesuchte Zahl ist &#039;&#039;&#039;größer&#039;&#039;&#039; als die zuletzt geratene)?&amp;lt;spoiler&amp;gt;Diesmal bleibt der bisherige Endwert des Ratebereichs der gleiche und der Startwert wird neu, auf einer Wert um eins mehr als die zuletzt geratene Zahl, gesetzt.&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 wissen wir (rechts bedeutet, die gesuchte Zahl ist &#039;&#039;&#039;größer&#039;&#039;&#039; als die zuletzt geratene)? &amp;lt;spoiler&amp;gt;Diesmal bleibt der bisherige Endwert des Ratebereichs der gleiche und der Startwert wird neu, auf einer Wert um eins mehr als die zuletzt geratene Zahl, gesetzt.&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 wir starten unseren nächsten Rateversuch!&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 wir starten unseren nächsten Rateversuch!&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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Zeile 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 24:&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 muss man bei jedem Rateversuch alles machen?&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 muss man bei jedem Rateversuch alles machen?&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;: Die Anzahl der Versuche um eins erhöhen.&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;: Die Anzahl der Versuche um eins erhöhen.&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;: Die Zahl innerhalb des Bereiches &quot;von&quot;-&quot;bis&quot; berechnen, die wir als nächsten Rateversuch ausgeben wollen.&amp;lt;spoiler&amp;gt;Verwenden wir doch einfach des arithmetischen Mittelwert des Ratebereichs: zahl = (von + bis) / 2&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;: Die Zahl innerhalb des Bereiches &quot;von&quot;-&quot;bis&quot; berechnen, die wir als nächsten Rateversuch ausgeben wollen. &amp;lt;spoiler&amp;gt;Verwenden wir doch einfach des arithmetischen Mittelwert des Ratebereichs: zahl = (von + bis) / 2&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;: Die Zahl ausgeben. Fertig.&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;: Die Zahl ausgeben. Fertig.&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-236:rev-237:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
	<entry>
		<id>http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=236&amp;oldid=prev</id>
		<title>Harald.burgsteiner: Die Seite wurde neu angelegt: „== Tipps und Tricks == ; Beim Starten des Programms, was müssen wir alles festlegen? : Wir müssen alle Variablen auf einen passenden Startwert setzen. &lt;s…“</title>
		<link rel="alternate" type="text/html" href="http://microbit.eeducation.at/index.php?title=CleverRaten_L%C3%B6sung&amp;diff=236&amp;oldid=prev"/>
		<updated>2018-04-09T15:52:30Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== Tipps und Tricks == ; Beim Starten des Programms, was müssen wir alles festlegen? : Wir müssen alle &lt;a href=&quot;/wiki/Variablen&quot; title=&quot;Variablen&quot;&gt;Variablen&lt;/a&gt; auf einen passenden Startwert setzen. &amp;lt;s…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Tipps und Tricks ==&lt;br /&gt;
; Beim Starten des Programms, was müssen wir alles festlegen?&lt;br /&gt;
: Wir müssen alle [[Variablen]] auf einen passenden Startwert setzen. &amp;lt;spoiler&amp;gt;In unserer Beispielslösung haben wir drei Variablen&amp;amp;#58; die Variable &amp;quot;von&amp;quot; (Start des aktuellen Ratebereichs) wird auf 1 gesetzt, die Variable &amp;quot;bis&amp;quot; (Ende des aktuellen Ratebereichs) wird auf 100 gesetzt und die &amp;quot;Anzahl Versuche&amp;quot; wird auf 0 gesetzt.&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
: Außerdem könnten wir einen Begrüßungstext oder ein Symbol ausgeben, damit man weiß, dass das Programm läuft. Überlege dir, wie dein eigener Startbildschirm aussehen soll!&lt;br /&gt;
: Nun können wir gleich unseren ersten Rateversuch starten!&lt;br /&gt;
&lt;br /&gt;
; Was soll passieren, wenn der micro&amp;amp;#58;bit nach links geneigt wird?&lt;br /&gt;
: Zur Erinnerung: die gesuchte Zahl ist damit &amp;#039;&amp;#039;&amp;#039;kleiner&amp;#039;&amp;#039;&amp;#039; als die zuletzt geratene.&lt;br /&gt;
: Wir wissen auch, dass es &amp;#039;&amp;#039;nicht&amp;#039;&amp;#039; die geratene Zahl sein kann.&lt;br /&gt;
: Somit können wir unseren Ratebereich neu eingrenzen.&amp;lt;spoiler&amp;gt;Der Startwert kann der gleiche bleiben, der Endwert ist um eins kleiner als die zuletzt geratene Zahl&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
: Und wir starten unseren nächsten Rateversuch!&lt;br /&gt;
&lt;br /&gt;
; Was soll passieren, wenn der micro&amp;amp;#58;bit nach rechts geneigt wird?&lt;br /&gt;
: Eigentlich fast das gleiche wie beim nach links Neigen.&lt;br /&gt;
: Was wissen wir (rechts bedeutet, die gesuchte Zahl ist &amp;#039;&amp;#039;&amp;#039;größer&amp;#039;&amp;#039;&amp;#039; als die zuletzt geratene)?&amp;lt;spoiler&amp;gt;Diesmal bleibt der bisherige Endwert des Ratebereichs der gleiche und der Startwert wird neu, auf einer Wert um eins mehr als die zuletzt geratene Zahl, gesetzt.&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
: Und wir starten unseren nächsten Rateversuch!&lt;br /&gt;
&lt;br /&gt;
; Warum ist es sinnvoll eine [[Funktionen|Funktion]] zu verwenden?&lt;br /&gt;
: Beobachte, dass wir nun schon bei drei verschiedenen Ereignissen (beim Start, nach links neigen, nach rechts neigen) immer das gleiche machen müssen&amp;amp;#58; einmal raten im Bereich &amp;quot;von&amp;quot;-&amp;quot;bis&amp;quot;.&lt;br /&gt;
: Nun könnte man einfach an allen drei Stellen jeweils den gleichen Programmcode hinschreiben.&lt;br /&gt;
: Eleganter ist es, statt dessen eine Funktion zu definieren, die an diesen drei Stellen aufgerufen wird.&lt;br /&gt;
: Das hat die Vorteile, dass das Programm kürzer und übersichtlicher wird, man weniger schreiben muss und dass, wenn man einen Fehler sucht oder etwas ändern möchte, dies nur an einer machen muss und nicht an drei Stellen.&lt;br /&gt;
&lt;br /&gt;
; Was muss man bei jedem Rateversuch alles machen?&lt;br /&gt;
: Die Anzahl der Versuche um eins erhöhen.&lt;br /&gt;
: Die Zahl innerhalb des Bereiches &amp;quot;von&amp;quot;-&amp;quot;bis&amp;quot; berechnen, die wir als nächsten Rateversuch ausgeben wollen.&amp;lt;spoiler&amp;gt;Verwenden wir doch einfach des arithmetischen Mittelwert des Ratebereichs: zahl = (von + bis) / 2&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
: Die Zahl ausgeben. Fertig.&lt;br /&gt;
&lt;br /&gt;
; Was machen wir, wenn die Tasten A und B gleichzeitig gedrückt werden?&lt;br /&gt;
: Wir verkünden, dass wir die Zahl erraten haben und wie viele Versuche notwendig waren.&lt;br /&gt;
&lt;br /&gt;
== Komplettlösungen ==&lt;br /&gt;
; Beim Starten des Programms, was müssen wir alles festlegen?&lt;br /&gt;
: Eine mögliche Lösung für den Start? &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - Beim Start.png|border|350px|Was passieren könnte, wenn das Programm startet]]&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Wenn der micro&amp;amp;#58;bit nach links geneigt wird?&lt;br /&gt;
: Es wird der &amp;quot;linke Teil&amp;quot; des bisherigen Ratebereichs als neuer Ratebereich verwendet.&lt;br /&gt;
: Die Funktion &amp;quot;rateZahl&amp;quot; wird aufgerufen.&lt;br /&gt;
: Das kann zum Beispiel so aussehen: &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - Nach Links.png|border|500px|Was passieren könnte, wenn nach links geneigt wird]]&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Wenn der micro&amp;amp;#58;bit nach rechts geneigt wird?&lt;br /&gt;
: Es wird der &amp;quot;rechte Teil&amp;quot; des bisherigen Ratebereichs als neuer Ratebereich verwendet.&lt;br /&gt;
: Die Funktion &amp;quot;rateZahl&amp;quot; wird aufgerufen.&lt;br /&gt;
: Das kann zum Beispiel so aussehen: &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - Nach Rechts.png|border|500px|Was passieren könnte, wenn nach rechts geneigt wird]]&amp;lt;/spoiler&amp;gt;&lt;br /&gt;
; Wenn die Tasten A und B gleichzeitig gedrückt werden, soll die Anzahl der Versuche ausgegeben werden.&lt;br /&gt;
: Der Programmteil könnte inklusive Abschlusstext zum Beispiel so aussehen: &amp;lt;spoiler text=&amp;quot;Lösung&amp;quot;&amp;gt;[[Datei:CleverRaten - AB gedrückt.png|border|800px|Was passieren könnte, wenn die Tasten A und B gleichzeitig gedrückt werden]]&amp;lt;/spoiler&amp;gt;&lt;/div&gt;</summary>
		<author><name>Harald.burgsteiner</name></author>
	</entry>
</feed>