Slide Puzzle Example
Loading the math board and drawing, please wait…
This example demonstrates a slide puzzle game where blocks are dragged to restore a complete image. Core math concepts include logical operations, coordinate transformations, random number generation, and geometric shape drawing. Construction highlights the use of GeoGebra commands like Point, PolyLine, Sequence, Polygon, If, RemoveUndefined, CountIf, Random, IndexOf, Translate, and objects such as points, A, frame, B, D, E, F, G, H, I, J, K, L, M, N, Z, O, button1, C, C_1, Z_1, B_1, A_1, D_1, E_1, F_1, G_1, K_1, J_1, I_1, H_1, L_1, M_1, N_1, O_1, image1, image2, image3, image4, image5. Suitable for high school math classes to illustrate probability & statistics, geometric transformations, and algorithmic applications, or for programming education.
GeoGebra Commands & Parameters
Point(points) → APolyLine((0, 0), (8, 0), (8, 8), (0, 8), (0, 0)) → framePoint(points) → BPoint(points) → DPoint(points) → EPoint(points) → FPoint(points) → GPoint(points) → HPoint(points) → IPoint(points) → JPoint(points) → KPoint(points) → LPoint(points) → MPoint(points) → NPoint(points) → OSequence(Segment[(i, 0), (i, 8)], i, 2, 6, 2) → list1Sequence(Segment[(0, i), (8, i)], i, 2, 6, 2) → list2Polygon((x(Z) - 1, y(Z) - 1), (x(Z) + 1, y(Z) - 1), (x(Z) + 1, y(Z) + 1), (x(Z) - 1, y(Z) + 1)) → polygon1, a, b, c, dIf(t ≟ 10, false, true) → scrambleSequence(If[Distance[Z, Element[points2, i]] ≟ 2, Element[points2, i]], i, 1, 15) → closepointsRemoveUndefined(closepoints) → closepointscleanCountIf(true, howmany, closepointsclean) → howmanyRandom(1, howmany) → iPolygon((18, 8), (20, 8), (20, 6), (18, 6)) → polygon2, e, f, g, hIndexOf((3, 7), points) → jTranslate(frame, (12, 0)) → frame'