Maze Path Finding
Loading the math board and drawing, please wait…
This example demonstrates how to find a path from the start to the end in a maze. The core math concepts involved include path planning, logical reasoning, and spatial imagination. Construction highlights: GeoGebra commands and objects like Shuffle, Element, Flatten, If, Length, Sequence, IsInRegion, Textfield, Text, Point, Segment are used to create the maze grid, generate random paths, check pat
GeoGebra Commands & Parameters
Shuffle(Sequence[10]) → randomNumbers, {3, 6, 8, 7, 5, 10, 2, 9, 4, 1}Element(randomNumbers, Mod[questionCount, Length[randomNumbers]] + 1) → randomNumberElement(allSolutionsCalculated, randomNumber) → expectedSolutionValueElement(Element[allSolutionsSplitted, randomNumber], 1) → expectedSolutionGanzeElement(Element[allSolutionsSplitted, randomNumber], 3) → expectedSolutionNennerElement(Element[allSolutionsSplitted, randomNumber], 2) → expectedSolutionZaehlerFlatten({labyrinthW01, labyrinthW02, labyrinthW03, labyrinthW04}) → labyrinthWaagrechtFlatten({labyrinthS01, labyrinthS02, labyrinthS03, labyrinthS04}) → labyrinthSenkrechtFlatten({labyrinthSenkrecht, labyrinthWaagrecht}) → labyrinthIf(randomNumber ∈ {1, 2, 3, 4, 5, 10}, inputno, inputyes) → correctLength(randomNumbers) → numberOfQuestionsSequence(Polygon[Element[questionsPositions, i], Element[questionsPositions, i] + sizeWaagrecht, Element[questionsPositions, i] + sizeWaagrecht + sizeSenkrecht, Element[questionsPositions, i] + sizeSenkrecht], i, 1, Length[questionsPositions]) → questionsRectanglesIsInRegion(A, Element[questionsRectangles, actualQuestionNeeded]) → showQuestionTextfield(studentAnswer01) → inputBox01Textfield(studentAnswer02) → inputBox02Textfield(studentAnswer03) → inputBox03Text("\textsf{" + (ReplaceAll[Element[allTasks, randomNumber], "-", "\\minus"]) + "}", txtTaskPosition, true, true, -1, 0) → txtTaskIf((¬needGanze) ∧ needBruch, 5.25, 5.95) → startPositionBruchXValuePoint(Line[B, xAxis]) → B2Segment(C, D) → fSegment(E, F) → g