滑块拼图示例
几何画板及绘图内容加载中,请稍等……
①本范例演示了一个滑块拼图游戏,通过拖动方块还原完整图像;②涉及的核心数学概念包括逻辑运算、坐标变换、随机数生成及几何图形绘制;③作图要点运用了Point, PolyLine, Sequence, Polygon, If, RemoveUndefined, CountIf, Random, IndexOf, Translate等GeoGebra命令及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等对象;④适合高中数学课堂演示概率统计、几何变换及算法应用,也可用于编程启蒙教学。
GeoGebra 命令及参数
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'