Counting Moves in “Trading Places” with GeoGebra Geometry

Counting Moves in “Trading Places” with GeoGebra Geometry
Loading the math board and drawing, please wait…
2020-09-20 14:55
This GeoGebra example demonstrates how the “Trading Places” game counts a player’s moves during interaction, while visualizing game progress using geometric regions and computed statistics. The key mathematical ideas include logic-based decision making (e.g., whether a point lies in a region), real and rational number computations, set-style element selection and state updates, and summation to aggregate counted quantities. Construction-wise, it uses Circle, Segment, and Polygon to build the relevant layout and boundaries, IsInRegion to test membership of a moving point in a target region, Element to extract and reuse selected objects/values, Text to display instructions and move counters, Sum to accumulate move totals (or part counts), and Insert to add objects/annotations into the scene incrementally. The command/object list (points such as A–H, multiple indices like i, j, l, m, n, q, r, s, and counters such as c_11, c_12, …, plus intermediate named sets/values) reflects a discrete game-state encoded alongside continuous geometry. Suitable for secondary-level enrichment on mathematical logic, interactive modeling, and basic data/statistics visualization with GeoGebra.

GeoGebra Commands & Parameters

  1. Circle(A, 1.2) → c_{11}
  2. Circle(B, 1.2) → c_{12}
  3. Circle(C, 1.2) → c_{13}
  4. Circle(D, 1.2) → c_{21}
  5. Circle(E, 1.2) → c_{22}
  6. Circle(F, 1.2) → c_{31}
  7. Circle(G, 1.2) → c_{32}
  8. Circle(H, 1.2) → c_{33}
  9. Segment(F, B) → i
  10. Segment(B, H) → j
  11. Segment(H, D) → l
  12. Segment(D, C) → m
  13. Segment(C, G) → n
  14. Segment(G, A) → q
  15. Segment(A, E) → r
  16. Segment(E, F) → s
  17. Circle(G_{1}, 0.75) → g_{1}
  18. Circle(G_{2}, 75) → c_1
  19. Circle(G_{2}, 0.75) → g_{2}
  20. Circle(Y_{1}, 0.75) → y_{1}
  21. Circle(Y_{2}, 0.75) → y_{2}
  22. Polygon(M, N, O, P) → poly1, m_1, n_1, o, p_1
  23. IsInRegion(G_{1}, c_{11}) → G1c11
  24. IsInRegion(G_{1}, c_{13}) → G1c13
  25. IsInRegion(G_{1}, c_{22}) → G1c22
  26. IsInRegion(G_{1}, c_{31}) → G1c31
  27. IsInRegion(G_{1}, c_{32}) → G1c32
  28. IsInRegion(G_{1}, c_{33}) → G1c33
  29. IsInRegion(G_{2}, c_{11}) → G2c11
  30. IsInRegion(G_{2}, c_{13}) → G2c13
  31. IsInRegion(G_{2}, c_{22}) → G2c22
  32. IsInRegion(G_{2}, c_{31}) → G2c31
  33. IsInRegion(G_{2}, c_{32}) → G2c32
  34. IsInRegion(G_{2}, c_{33}) → G2c33
  35. IsInRegion(Y_{1}, c_{11}) → Y1c11
  36. IsInRegion(Y_{1}, c_{13}) → Y1c13
  37. IsInRegion(Y_{1}, c_{22}) → Y1c22
  38. IsInRegion(Y_{1}, c_{31}) → Y1c31
  39. IsInRegion(Y_{1}, c_{32}) → Y1c32
  40. IsInRegion(Y_{1}, c_{33}) → Y1c33
  41. IsInRegion(Y_{2}, c_{11}) → Y2c11
  42. IsInRegion(Y_{2}, c_{13}) → Y2c13
  43. IsInRegion(Y_{2}, c_{22}) → Y2c22
  44. IsInRegion(Y_{2}, c_{31}) → Y2c31
  45. IsInRegion(Y_{2}, c_{32}) → Y2c32
  46. IsInRegion(Y_{2}, c_{33}) → Y2c33
  47. IsInRegion(G_{1}, c_{12}) → G1c12
  48. IsInRegion(G_{1}, c_{21}) → G1c21
  49. IsInRegion(G_{2}, c_{12}) → G2c12
  50. IsInRegion(G_{2}, c_{21}) → G2c21
  51. IsInRegion(Y_{1}, c_{12}) → Y1c12
  52. IsInRegion(Y_{1}, c_{21}) → Y1c21
  53. IsInRegion(Y_{2}, c_{12}) → Y2c12
  54. IsInRegion(Y_{2}, c_{21}) → Y2c21
  55. Text("G1c11") → G1MoveRecord
  56. Sum(listG1pos) → b
  57. Element(listY1currentpos, IndexOf[true, listY1pos]) → Y1CurrentPosition
  58. Element(listG2currentpos, IndexOf[true, listG2pos]) → G2CurrentPosition
  59. Insert(G1MovedTo, G1RecordList, -1) → lG1
  60. Insert(G2MovedTo, G2RecordList, -1) → lG2
  61. Insert(Y1MovedTo, Y1RecordList, -1) → lY1
  62. Insert(Y2MovedTo, Y2RecordList, -1) → lY2

AI Drawing Prompt Reference

Create a geometric layout featuring multiple circles and line segments to illustrate an interactive game process. The design includes several circles of varying sizes connected by line segments to form closed polygonal structures. Some circles should display different states based on their positions relative to specific regions, with visual indicators like colors or markers showing containment relationships. The overall arrangement should reflect game logic, using dynamic state changes and counters to visualize game progress.
The prompt above was compiled from the original drawing commands and is for reference only.