$\text{Graben}$

$\textsf{Weitergraben}$

$\text{Neuer Schatz}$

\colorbox{235,231,248}{\textsf
{\vphantom{g}Dieser Punkt ist außerhalb des Parks.\
Hier darfst du nicht graben.}}

No selection allowed for all input boxes

Selection allowed for all input boxes

\textsf{Im Park ist eine große Schatzkiste vergraben.\
\vphantom{g}Du hast 8 Versuche den Schatz zu finden.\
An welchem Punkt möchtest du mit dem Graben beginnen?\\
Gib ganzzahlige Koordinaten ein!       P = (       |       )}

Fix position and allow selection for all text objects

Empty all input boxes

#EDEDED

\text{Text for just the correct answer.}

\text{Lösung:\
\(1+1=2\)}

\underline\text{Helper scripts for template}

\underline\text{Helper scripts for authors}

$a=$

$b=$

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

\textsf{y}

\textsf{x}

\textsf{Kein Schatz!}

$\textsf{Schatz zeigen}$

0

aInput = NaN
yS = Random(-5, 2)
xS = Random(-7, 3)
Schatz4Re: (xS + 5, yS + 4)
Schatz4Li: (xS + 2, yS + 4)
Schatz4Mi1: (xS + 4, yS + 4)
Schatz4Mi: (xS + 3, yS + 4)
Schatz3Re: (xS + 5, yS + 3)
Schatz3Mi1: (xS + 4, yS + 3)
Schatz3Li: (xS + 2, yS + 3)
Schatz3Mi: (xS + 3, yS + 3)
Schatz2Re: (xS + 4, yS + 2)
Schatz2Mi1: (xS + 3, yS + 2)
Schatz2Mi: (xS + 2, yS + 2)
Schatz2Li: (xS + 1, yS + 2)
Schatz1Li: (xS + 1, yS + 1)
Schatz1Mi: (xS + 2, yS + 1)
Schatz1Mi1: (xS + 3, yS + 1)
Schatz1Re: (xS + 4, yS + 1)
bInput = NaN
correct4: aInput ≟ x(Schatz4Li) ∧ bInput ≟ y(Schatz4Li) ∨ aInput ≟ x(Schatz4Re) ∧ bInput ≟ y(Schatz4Li) ∨ aInput ≟ x(Schatz4Mi) ∧ bInput ≟ y(Schatz4Li) ∨ aInput ≟ x(Schatz4Mi1) ∧ bInput ≟ y(Schatz4Li)
correct3: aInput ≟ x(Schatz3Li) ∧ bInput ≟ y(Schatz3Li) ∨ aInput ≟ x(Schatz3Re) ∧ bInput ≟ y(Schatz3Li) ∨ aInput ≟ x(Schatz3Mi) ∧ bInput ≟ y(Schatz3Li) ∨ aInput ≟ x(Schatz3Mi1) ∧ bInput ≟ y(Schatz3Li)
correct2: aInput ≟ x(Schatz2Li) ∧ bInput ≟ y(Schatz2Li) ∨ aInput ≟ x(Schatz2Re) ∧ bInput ≟ y(Schatz2Li) ∨ aInput ≟ x(Schatz2Mi) ∧ bInput ≟ y(Schatz2Li) ∨ aInput ≟ x(Schatz2Mi1) ∧ bInput ≟ y(Schatz2Li)
correct1: aInput ≟ x(Schatz1Li) ∧ bInput ≟ y(Schatz1Li) ∨ aInput ≟ x(Schatz1Re) ∧ bInput ≟ y(Schatz1Li) ∨ aInput ≟ x(Schatz1Mi) ∧ bInput ≟ y(Schatz1Li) ∨ aInput ≟ x(Schatz1Mi1) ∧ bInput ≟ y(Schatz1Li)
SchatzLi: (xS, yS)
SchatzMiR: (x(SchatzLi) + 3, y(SchatzLi))
SchatzRe: (x(SchatzLi) + 6, y(SchatzLi))
SchatzMi: (x(SchatzLi) + 2, y(SchatzLi))
check = false
correct: correct1 ∨ correct2 ∨ correct3 ∨ correct4
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
showButtonTryAgain = false
showButtonValidate = true
InputBox1 = Textfield(aInput)
InputBox2 = Textfield(bInput)
showcorrecttext = false
questionCount = 0
showhinttypicalerror = false
correctText: "\text{" + (LaTeX[If[correct, "✓ Richtig", "✘ Falsch"]]) + "}"
isTypicalError: bInput ≟ aInput + 1
Anker1Hintergrund: (-6.5, -4.2)
Anker2Hintergrund: (7.3, -4.2)
Grabung: (aInput, bInput)
gefunden: correct ∧ check
ImPark: -6 ≤ aInput ≤ 7 ∧ -4 ≤ bInput ≤ 6
Achse2 = Vector((0, -4.2), (0, 6.5))
x1 = 6
x2 = 6
x3 = 1
x4 = 0
x5 = 5
x6 = 1
x7 = 1
x8 = 1
y1 = 1
y2 = 1
y3 = 2
y4 = 4
y5 = -2
y6 = 1
y7 = 1
y8 = 1
P1: (x1, y1)
P2: (x2, y2)
P3: (x3, y3)
P4: (x4, y4)
P5: (x5, y5)
P6: (x6, y6)
P7: (x7, y7)
P8: (x8, y8)
showhint: check ∧ (aInput < -6 ∨ aInput > 7 ∨ bInput < -4 ∨ bInput > 6)
background: {Polygon[(-8, 6.2), (16, 6.2), (16, 12), (-8, 12)]}
bgBelow: {Polygon[(-8, -7.1), (10, -7.1), (10, -4.2), (-8, -4.2)]}
bgRight: {Polygon[(7.3, -5), (10, -5), (10, 7), (7.3, 7)]}
Achse1 = Vector((-7, 0), (8, 0))
textCountAttempt: "\textsf{Anzahl der Versuche: " + (LaTeX[attemptCount]) + " }"
showTreasure = false
showButtonNew: check ∧ correct ∨ showTreasure ∧ showsolution
l1 = Sequence(Segment[(i, 0.1), (i, -0.1)], i, -7, -1, 1)
l4 = Sequence(Segment[(0.1, i), (-0.1, i)], i, 1, 6, 1)
l2 = Sequence(Segment[(i, 0.1), (i, -0.1)], i, 1, 7, 1)
l3 = Sequence(Segment[(0.1, i), (-0.1, i)], i, -4, -1, 1)
l5 = Sequence(Text[i, (i - 0.09, -0.5)], i, 1, 7, 1)
l6 = Sequence(Text[i, (i - 0.2, -0.5)], i, -6, -1, 1)
l7 = Sequence(Text[i, (-0.4, i - 0.1)], i, 1, 6, 1)
l8 = Sequence(Text[i, (-0.5, i - 0.1)], i, -1, -4, -1)