$\text{Überprüfen}$

$\text{Neuer Versuch}$

$\text{Neue Aufgabe}$

\text{This text shows a hint for the student.\\
It is shown after the second wrong answer\
and is displayed during the third try.}

No selection allowed for all input boxes

Selection allowed for all input boxes

Fix position and allow selection for all text objects

Empty all input boxes

#EDEDED

\underline\text{Helper scripts for template}

\underline\text{Helper scripts for authors}

$b=$

\text{This hint is for typical misconceptions of\students. It is shown after any wrong answer\that shows the typical error.}

\text{Michi, Vali, Maxi und Luca trainieren für verschiedene Wettbewerbe.}

$\textsf{Nochmal!}$

$\textsf{Weiter}$

\textsf{Du hast alle Aufgaben\
       bearbeitet!}

l5: {"kürzesten", "höchsten", "zweithöchsten", "dritthöchsten"}
count = 1
randomNos = Shuffle(Sequence[Random[1, 4], i, 1, 100])
num = Element(randomNos, Mod[count, 100] + 1)
selectedL5: "" + (l5(num)) + ""
namen: {"", "$\textsf{Michi}$", "$\textsf{Vali}$", "$\textsf{Maxi}$", "$\textsf{Luca}$"}
l1_c: {4, 1, 2, 3}
cor1: l1_c(num) + 1
l2_c: {1, 2, 4, 3}
randomNos3 = Shuffle(Sequence[Random[1, 2], i, 1, 100])
l3_c: {1, 4, 3, 2}
l4_c: {2, 4, 3, 1}
l5_c: {4, 3, 2, 1}
l6_c: {1, 4, 3, 2}
l7_c: {4, 2, 3, 1}
l7_2: {"", "26,71", "26,90", "26,78", "26,12"}
l7_1: {"", "20,88", "21,79", "20,90", "19,99"}
l6_2: {"", "14,32", "15,10", "15,01", "14,39"}
l6_1: {"", "17,63", "17,70", "17,68", "17,65"}
l5_2: {"", "11,99", "11,97", "11,90", "11,89"}
l5_1: {"", "13,49", "13,42", "13,40", "12,10"}
l4_2: {"", "10,24", "10,21", "10,42", "10,87"}
l4_1: {"", "8,76", "8,71", "9,12", "9,59"}
l3_2: {"", "0,90", "0,94", "0,99", "1,00"}
l3_1: {"", "0,85", "0,89", "1,01", "1,10"}
l2_2: {"", "5,41", "5,44", "5,94", "5,53"}
l2_1: {"", "7,12", "7,19", "7,68", "7,45"}
l1_2: {"", "4,65", "4,56", "3,55", "3,51"}
Zahlen2: {l1_2, l2_2, l3_2, l4_2, l5_2, l6_2, l7_2}
l1_1: {"", "3,55", "3,51", "2,97", "2,81"}
Zahlen1: {l1_1, l2_1, l3_1, l4_1, l5_1, l6_1, l7_1}
num3 = Element(randomNos3, Mod[count, 100] + 1)
randomNos2: {2, 6, 7, 4, 5, 1, 3}
num2: randomNos2(count)
selectedZahl2: Zahlen2(num2)
selectedZahl1: Zahlen1(num2)
cor2: l2_c(num) + 1
c3: SelectedIndex[namen] ≟ cor2
cor3: l3_c(num) + 1
c5: SelectedIndex[namen] ≟ cor3
cor4: l4_c(num) + 1
c7: SelectedIndex[namen] ≟ cor4
cor5: l5_c(num) + 1
c9: SelectedIndex[namen] ≟ cor5
cor6: l6_c(num) + 1
c11: SelectedIndex[namen] ≟ cor6
cor7: l7_c(num) + 1
c13: SelectedIndex[namen] ≟ cor7
c1: SelectedIndex[namen] ≟ cor1
corr1: {c1, c3, c5, c7, c9, c11, c13}
Blue = (-5.32, 4.5)
Green = (-5.28, 3.68)
Orange = (-5.2, 2.86)
Red = (-5.32, 2.04)
Purple = (-5.34, 1.12)
Gray = (-5.34, 0.32)
GrayDark = (-5.36, -0.7)
validate = false
showanswer = false
showsolution = false
attemptCount = 0
correctCount = 0
showButtonNew = false
showButtonTryAgain = false
showButtonValidate = true
showhint = false
aInput = NaN
InputBox1 = Textfield(aInput)
bInput = NaN
InputBox2 = Textfield(bInput)
correct: corr1(num2)
showcorrecttext = false
questionCount = 1
PtopLeftCornerFeedback = (3.137516089962614, 7.8562696171085715)
PbottomRightCornerFeedback = (4.9194897258111725, 7.004021356485337)
PtopRightCornerFeedback: (x(PbottomRightCornerFeedback), y(PtopLeftCornerFeedback))
PbottomLeftCornerFeedback: (x(PtopLeftCornerFeedback), y(PbottomRightCornerFeedback))
rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback = Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback)
showhinttypicalerror = false
correctText: "\text{" + (LaTeX[If[correct, "✓ Richtig", "✘ Falsch"]]) + "}"
isTypicalError: bInput ≟ aInput + 1
l1: {"kürzesten", "weitesten", "zweitweitesten", "drittweitesten"}
l2: {"schnellsten", "zweitschnellsten", "drittschnellsten", "langsamsten"}
selectedL1: l1(num)
selectedL2: l2(num)
q1: "\text{Am " + (LaTeX[selectedL1]) + " ist} "
q2: "\text{Am " + (LaTeX[selectedL2]) + " ist}"
q4: "\text{Am " + (LaTeX[selectedL1]) + " hat}"
q5: "\text{Am " + (LaTeX[selectedL2]) + " ist}"
q6: "\text{Am " + (LaTeX[selectedL2]) + " ist}"
q7: "\text{Am " + (LaTeX[selectedL1]) + " hat}"
q3: "\text{Am " + (LaTeX[selectedL5]) + " ist
}"
l3: {q1, q2, q3, q4, q5, q6, q7}
questionText: "" + (LaTeX[l3(num2)]) + "\phantom{Üp}"
l4: {"Weitsprung", "60 m-Lauf", "Hochsprung", "Kugelstoß", "100 m-Hürdenlauf", "Klettern", "Diskuswurf"}
A_0 = (4.746607637764104, 3.015613093309887)
B = (8.259717637764103, 3.015613093309887)
cor: {cor1, cor2, cor3, cor4, cor5, cor6, cor7}
a = SelectedIndex(selectedZahl2)
selectedcor: cor(num2)
l_m: {"m", "s", "m", "m", "s", "s", "m"}
D = Corner(questionText, 2)
ant1: {"kürzeste", "weiteste", "zweitweiteste", "drittweiteste"}
ant2: {"schnellste", "zweitschnellste", "drittschnellste", "langsamste"}
ant3: {"Sprungweite", "Laufzeit", "Sprunghöhe", "Wurfweite", "Laufzeit", "Kletterzeit", "Wurfweite"}
l1a: {"kürzeste", "weiteste", "zweitweiteste", "drittweiteste"}
l2a: {"schnellste", "zweitschnellste", "drittschnellste", "langsamste"}
l5a: {"kürzeste", "höchste", "zweithöchste", "dritthöchste"}
selectedL1a: l1a(num)
selectedL2a: l2a(num)
selectedL5a: l5a(num)
namena: {"", "Michi", "Vali", "Maxi", "Luca"}
a1: "\textsf{Lösung: Die " + (LaTeX[selectedL1a]) + "\\Sprungweite hat " + (LaTeX[namena(cor(num2))]) + " erzielt.}"
a2: "\textsf{Lösung: Die " + (LaTeX[selectedL2a]) + "\\Laufzeit hat " + (LaTeX[namena(cor(num2))]) + " erzielt. }"
a3: "\textsf{Lösung: Die " + (LaTeX[selectedL5a]) + "\\Sprunghöhe hat " + (LaTeX[namena(cor(num2))]) + " erzielt. }"
a4: "\textsf{Lösung: Die " + (LaTeX[selectedL1a]) + "\\Wurfweite hat " + (LaTeX[namena(cor(num2))]) + " erzielt.}"
a5: "\textsf{Lösung: Die " + (LaTeX[selectedL2a]) + "\\Laufzeit hat " + (LaTeX[namena(cor(num2))]) + " erzielt.}"
a6: "\textsf{Lösung: Die " + (LaTeX[selectedL2a]) + "\\Kletterdauer hat " + (LaTeX[namena(cor(num2))]) + " erzielt.}"
a7: "\textsf{Lösung: Die " + (LaTeX[selectedL1a]) + "\\Wurfweite hat " + (LaTeX[namena(cor(num2))]) + " erzielt.}"
antworten: {a1, a2, a3, a4, a5, a6, a7}
text3: "\textsf{" + (LaTeX[antworten(num2)]) + "}"
verb: {"gesprungen.", "gelaufen.", "gesprungen.", "geworfen.", "gelaufen.", "geklettert.", "geworfen."}
text7: "\textsf{" + (LaTeX[verb(num2)]) + "\phantom{Üp}}"
textCountCorrect: "\text{Richtig gelöste Aufgaben: " + (LaTeX[correctCount]) + "}"
text8: "\textsf{" + (LaTeX[questionCount]) + "/7}"
buttonLatex: "\textsf{" + (LaTeX[If[count < 7, "Neue Aufgabe", "Nochmal!"]]) + "}"
move = 0
A = (3.874323507854751, 5.252248260623236)
C = (6.874323507854748, 5.252248260623236)
text4: "\text{\colorbox{#f3aa7c}{\bold{" + (LaTeX[l4(num2)]) + "}\\\\
Michi: " + (LaTeX[selectedZahl1(2)]) + " " + (LaTeX[l_m(num2)]) + "\\Vali:   " + (LaTeX[selectedZahl1(3)]) + " " + (LaTeX[l_m(num2)]) + "\\Maxi:  " + (LaTeX[selectedZahl1(4)]) + " " + (LaTeX[l_m(num2)]) + "\\Luca:  " + (LaTeX[selectedZahl1(5)]) + " " + (LaTeX[l_m(num2)]) + "}"
text5: "\text{{\colorbox{f3aa7c}{\bold{" + (LaTeX[l4(num2)]) + "}
\\\\Michi: " + (LaTeX[selectedZahl2(2)]) + " " + (LaTeX[l_m(num2)]) + "\\Vali:   " + (LaTeX[selectedZahl2(3)]) + " " + (LaTeX[l_m(num2)]) + "\\Maxi:  " + (LaTeX[selectedZahl2(4)]) + " " + (LaTeX[l_m(num2)]) + "\\Luca:  " + (LaTeX[selectedZahl2(5)]) + " " + (LaTeX[l_m(num2)]) + "}}"