Algebra Game: Team Scoring Contest

Algebra Game: Team Scoring Contest
Loading the math board and drawing, please wait…
2012-01-06 01:37
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

  1. Sort(Sequence[(Random[-w, w] + If[new, 0, 0], Random[-w, w]), t, 1, n]) → points2
  2. RemoveUndefined(Append[Element[points2, 1], Sequence[If[Element[points2, t] ≠ Element[points2, t - 1], Element[points2, t]], t, 2, n]]) → points
  3. Join(Sequence[Sequence[Line[Element[points, t], Element[points, s]], t, s + 1, n], s, 1, Length[points] - 1]) → list2
  4. Polygon(Corner[1, 1], Corner[1, 4], (-w - 0.5, y(Corner[1, 4])), (-w - 0.5, y(Corner[1, 1]))) → poly2, a, b, c, d
  5. Textfield(f) → inputBox1
  6. Textfield(g) → inputBox2
  7. Textfield(h) → inputBox3
  8. RemoveUndefined(Sequence[If[f(x(Element[points, t])) ≟ y(Element[points, t]), Element[points, t], 1], t, 1, n]) → f_{score}
  9. RemoveUndefined(Sequence[If[g(x(Element[points, t])) ≟ y(Element[points, t]), Element[points, t], 1], t, 1, n]) → g_{score}
  10. RemoveUndefined(Sequence[If[h(x(Element[points, t])) ≟ y(Element[points, t]), Element[points, t], 1], t, 1, n]) → h_{score}
  11. If(vertical, list2, RemoveUndefined[Sequence[If[Slope[Element[list2, t]] ≥ -2 * w, Element[list2, t]], t, 1, Length[list2]]]) → list1
  12. Sequence(CountIf[x ≟ Element[list1, t], list1], t, 1, Length[list1]) → list3
  13. Max(list3) → best
  14. Element(list1, IndexOf[best, list3]) → best2
  15. CountIf(x ≟ 0, Zip[Distance[A, best2], A, points]) → best3
  16. Textfield(n) → inputBox4
  17. Textfield(w) → inputBox5
  18. Textfield(ratio) → inputBox6
  19. Textfield(time) → inputBox7