Finding the Path in the Labyrinth

Finding the Path in the Labyrinth
Loading the math board and drawing, please wait…
2023-11-13 20:14
This example demonstrates how to use GeoGebra to find the path in a labyrinth. It involves the core math concepts of proportions and transformations. The construction points include using Shuffle, Element, Flatten, If, Length, Sequence, IsInRegion, Textfield, and Text GeoGebra commands/objects. It is suitable for middle-level math education, particularly for learning proportions and transformations.

GeoGebra Commands & Parameters

  1. Shuffle(Sequence[10]) → randomNumbers, {6, 1, 10, 3, 2, 7, 9, 4, 8, 5}
  2. Element(randomNumbers, Mod[questionCount, Length[randomNumbers]] + 1) → randomNumber
  3. Element(allSolutionsCalculated, randomNumber) → expectedSolutionValue
  4. Element(Element[allSolutionsSplitted, randomNumber], 1) → expectedSolutionGanze
  5. Element(Element[allSolutionsSplitted, randomNumber], 3) → expectedSolutionNenner
  6. Element(Element[allSolutionsSplitted, randomNumber], 2) → expectedSolutionZaehler
  7. Flatten({labyrinthW01, labyrinthW02, labyrinthW03, labyrinthW04}) → labyrinthWaagrecht
  8. Flatten({labyrinthS01, labyrinthS02, labyrinthS03, labyrinthS04}) → labyrinthSenkrecht
  9. Flatten({labyrinthSenkrecht, labyrinthWaagrecht}) → labyrinth
  10. If(randomNumber < 7, studentAnswer01 ≟ listSol(randomNumber), listSol2(randomNumber) ≟ inputtrue) → correct
  11. Length(randomNumbers) → numberOfQuestions
  12. Sequence(Polygon[Element[questionsPositions, i], Element[questionsPositions, i] + sizeWaagrecht, Element[questionsPositions, i] + sizeWaagrecht + sizeSenkrecht, Element[questionsPositions, i] + sizeSenkrecht], i, 1, Length[questionsPositions]) → questionsRectangles
  13. IsInRegion(A, Element[questionsRectangles, actualQuestionNeeded]) → showQuestion
  14. Textfield(studentAnswer01) → inputBox01
  15. Textfield(studentAnswer02) → inputBox02
  16. Textfield(studentAnswer03) → inputBox03
  17. Text("\textsf{" + (ReplaceAll[Element[allTasks, randomNumber], "-", "\\minus"]) + "}", txtTaskPosition, true, true, -1, 0) → txtTask
  18. If((¬needGanze) ∧ needBruch, 5.25, 5.95) → startPositionBruchXValue
  19. Element({P1, P2, P3, P4, P5, P6}, randomNumber) → P
  20. If(randomNumber < 7, Defined[studentAnswer01], inputtrue ∨ inputfalse) → fixed
  21. If(inputfalse, B2, B1) → B

AI Drawing Prompt Reference

Create a labyrinth-style layout by combining several horizontal wall segments with several vertical wall segments into a single overall maze boundary and passage region. First, gather the four horizontal segments into one set and the four vertical segments into another, then merge them to form the complete maze. Next, place a sequence of small rectangles on the maze at predetermined positions, with each rectangle acting as a local question area. On one selected rectangle, overlay a task text line related to a fraction expression, and add multiple text input boxes in the same area for student answers.
The prompt above was compiled from the original drawing commands and is for reference only.