Integer Addition and Subtraction Game by Maertens J

Integer Addition and Subtraction Game by Maertens J
Loading the math board and drawing, please wait…
2019-07-08 17:40
This example demonstrates a game/exercise with dropping cards for practicing the addition and subtraction of positive and negative integers. It involves core math concepts like integer operations and positive/negative number concepts. Construction uses GeoGebra commands such as Random, If, Circle, Alat1, Alat2, Line, Corner, and LaTeX. Suitable for elementary and above students for math practice and gamified learning.

GeoGebra Commands & Parameters

  1. Random(-10, 10) → rezultat
  2. If(Random[0, 1] ≟ 0, 0, 1) → rndOperacija
  3. Random(-10, 10) → rndBroj1
  4. If(rndOperacija ≟ 0, rezultat - rndBroj1, (-(rezultat - rndBroj1))) → rndBroj2
  5. If(rndOperacija ≟ 1, If[rndBroj2 ≥ 0, "" + rndBroj1 + " - " + rndBroj2 + "", "" + rndBroj1 + " - (" + rndBroj2 + ")"], "") → tekstZadMinus
  6. If(rndOperacija ≟ 0, If[rndBroj2 ≥ 0, "" + rndBroj1 + " + " + rndBroj2 + "", "" + rndBroj1 + " + (" + rndBroj2 + ")"], "") → tekstZadPlus
  7. Circle(A, 0.3) → k1
  8. Alat1(B) → k2
  9. Alat1(C) → k3
  10. Alat1(D) → k4
  11. Alat1(E) → k5
  12. Alat1(F) → k6
  13. Alat1(G) → k7
  14. Alat1(H) → k8
  15. Alat1(I) → k9
  16. Alat1(J) → k10
  17. Circle(K, 0.3) → c1
  18. Alat2(L) → c2
  19. Alat2(M) → c3
  20. Alat2(N) → c4
  21. Alat2(O) → c5
  22. Alat2(P) → c6
  23. Alat2(Q) → c7
  24. Alat2(R) → c8
  25. Alat2(S) → c9
  26. Alat2(U) → c10
  27. If(rndOperacija ≟ 0, " " + tekstZadPlus + " ", " " + tekstZadMinus + " ") → tekstZad
  28. Circle(V, 0.3) → c
  29. Line(V, yAxis) → b
  30. Corner(5) → C_1
  31. LaTeX(C_1, true, true) → tekst5

AI Drawing Prompt Reference

Create a math game interface for practicing addition and subtraction of positive and negative integers. Randomly generate two numbers and an operation symbol, represent the numbers with circles, connect them with lines, and display the arithmetic expression. Draw the circles for the numbers first, connect them to a central line, then display the expression above.
The prompt above was compiled from the original drawing commands and is for reference only.