Algebra Game: Team Scoring Contest
Loading the math board and drawing, please wait…
This example demonstrates a game for Algebra I classes, where three teams (f, g, h) aim to destroy as many points as possible by using equations. It involves core math concepts like equations, geometric mean, scalene triangles, set theory, scatter plots, and parametric curves. The construction utilizes GeoGebra commands and objects such as Sort, RemoveUndefined, Join, Polygon, Textfield, If, Sequence, Max, Element, and CountIf. Suitable for middle school and above, it serves as a practical application of equation solving and geometric principles.
GeoGebra Commands & Parameters
Sort(Sequence[(Random[-w, w] + If[new, 0, 0], Random[-w, w]), t, 1, n]) → points2RemoveUndefined(Append[Element[points2, 1], Sequence[If[Element[points2, t] ≠ Element[points2, t - 1], Element[points2, t]], t, 2, n]]) → pointsJoin(Sequence[Sequence[Line[Element[points, t], Element[points, s]], t, s + 1, n], s, 1, Length[points] - 1]) → list2Polygon(Corner[1, 1], Corner[1, 4], (-w - 0.5, y(Corner[1, 4])), (-w - 0.5, y(Corner[1, 1]))) → poly2, a, b, c, dTextfield(f) → inputBox1Textfield(g) → inputBox2Textfield(h) → inputBox3RemoveUndefined(Sequence[If[f(x(Element[points, t])) ≟ y(Element[points, t]), Element[points, t], 1], t, 1, n]) → f_{score}RemoveUndefined(Sequence[If[g(x(Element[points, t])) ≟ y(Element[points, t]), Element[points, t], 1], t, 1, n]) → g_{score}RemoveUndefined(Sequence[If[h(x(Element[points, t])) ≟ y(Element[points, t]), Element[points, t], 1], t, 1, n]) → h_{score}If(vertical, list2, RemoveUndefined[Sequence[If[Slope[Element[list2, t]] ≥ -2 * w, Element[list2, t]], t, 1, Length[list2]]]) → list1Sequence(CountIf[x ≟ Element[list1, t], list1], t, 1, Length[list1]) → list3Max(list3) → bestElement(list1, IndexOf[best, list3]) → best2CountIf(x ≟ 0, Zip[Distance[A, best2], A, points]) → best3Textfield(n) → inputBox4Textfield(w) → inputBox5Textfield(ratio) → inputBox6Textfield(time) → inputBox7