Space Invasion - Multiplying Integers
Loading the math board and drawing, please wait…
This example demonstrates integer multiplication through a space invasion game. It involves core math concepts like integer multiplication and random number generation. Construction highlights include using GeoGebra commands such as Sequence, Shuffle, Segment, Point, Line, Join, Centroid, OrthogonalLine, Intersect, LineBisector, Circle, If, Polygon to create game elements and interactions. Suitable for middle school mathematics teaching to practice integer multiplication in a fun way.
GeoGebra Commands & Parameters
Sequence(Random[-10, 10], j, 1, 6, 1) → A3drugiFaktShuffle(Sequence[j, j, -10, 10, 1]) → A1sviPrviFaktSequence(Element[A1sviPrviFakt, j], j, 1, 6, 1) → A2odabrPrviFaktSegment(A', B') → fPoint(f) → A_1Segment((5.2, 3.6), (5.2, -3.6)) → hPoint(h) → CLine(C, xAxis) → gPoint(g) → DPoint(g) → EPoint(g) → FPoint(g) → GPoint(g) → HPoint(g) → IPoint(g) → JPoint(g) → KPoint(g) → LPoint(g) → MPoint(g) → NPoint(g) → OJoin({A2odabrPrviFakt, A3drugiFakt}) → listaBrojevaCentroid(Polygon[A_1, B_1, B'_1, A'_1]) → POrthogonalLine(P, xAxis) → jLine(B''_1, xAxis) → iIntersect(i, j) → QLineBisector(C, C') → kLine(Q, yAxis) → lIntersect(k, l) → RCircle(R, 0.25) → cIntersect(c, j) → S, TIntersect(c, k) → U, VSegment(S, T) → mSegment(U, V) → nSegment(S, Q) → pIf(x(D) < x(R) < x(E), true, false) → uPodručju1If(x(H) < x(R) < x(I), true, false) → uPodručju3If(x(J) < x(R) < x(K), true, false) → uPodručju4If(x(L) < x(R) < x(M), true, false) → uPodručju5If(x(N) < x(R) < x(O), true, false) → uPodručju6If(x(F) < x(R) < x(G), true, false) → uPodručju2If(uPodručju1, tekstRjeZad1, If[uPodručju2, tekstRjeZad2, If[uPodručju3, tekstRjeZad3, If[uPodručju4, tekstRjeZad4, If[uPodručju5, tekstRjeZad5, If[uPodručju6, tekstRjeZad6, "izvan"]]]]]) → naciljanBrojTxtShuffle({1, 2, 3, 4, 5, 6}) → indeksiZadaciShuffleIf(Text[Object["rjeZad" + (Element[indeksiZadaciShuffle, redniBrZad])]] ≟ naciljanBrojTxt, true, false) → tocnoPogodjenoSegment(Q, R) → qPoint(q) → ProjektilIf(uPodručju1, 1, If[uPodručju2, 2, If[uPodručju3, 3, If[uPodručju4, 4, If[uPodručju5, 5, If[uPodručju6, 6, 0]]]]]) → gdjeJeProjektilIf(y(C) ≟ -3.6, true, false) → krajIgreIf(x(D) < x(S) < x(E) ∧ vidljivoPodručje1 ∨ x(F) < x(S) < x(G) ∧ vidljivoPodručje2 ∨ x(H) < x(S) < x(I) ∧ vidljivoPodručje3 ∨ x(J) < x(S) < x(K) ∧ vidljivoPodručje4 ∨ x(L) < x(S) < x(M) ∧ vidljivoPodručje5 ∨ x(N) < x(S) < x(O) ∧ vidljivoPodručje6, true, false) → JeLiNaciljanBrodPolygon(A, B, (x(B), 5.3), (x(A), 5.3)) → okvir, r, s, t, a
AI Drawing Prompt Reference
Create a space invasion game with 6 random integers representing enemy ships. The ships are located above the x-axis, and the player needs to click to hit them. Each ship's coordinates are formed by two random integers, and the player needs to click the correct position to hit the ship. The game area is divided into six sections, each corresponding to a ship. After clicking, a shooting line will be generated, passing through the ship. If the shooting line hits the ship, the game will show correct, otherwise incorrect.
The prompt above was compiled from the original drawing commands and is for reference only.