Night Market Mahjong Probability & Geometry Simulation
Loading the math board and drawing, please wait…
This GeoGebra example uses a night market mahjong game model to demonstrate probability distribution and spatial geometric relationships in random card drawing. Core mathematical concepts include random sampling in probability theory, 2D vectors for card positions, and spatial structures of cones and rectangular prisms. Construction highlights: Sequence generates card deck, KeepIf filters cards by conditions, Union and Intersection perform set operations, Translate creates card movement animations, and Div calculates probability ratios. The numerous list objects store card data while carte series objects represent specific mahjong tiles, making this suitable for high school probability statistics teaching or as an engaging case study for geometric probability models.
GeoGebra Commands & Parameters
Sequence(Random[1, 36 - k], k, 0, 14) → list1Element(list1, 1) → carte1Sequence(k, k, 1, 36) → list2KeepIf(x ≠ carte1, list2) → list3Element(list3, Element[list1, 2]) → carte2KeepIf(x ≠ carte2, list3) → list4Element(list4, Element[list1, 3]) → carte3KeepIf(x ≠ carte3, list4) → list5Element(list5, Element[list1, 4]) → carte4KeepIf(x ≠ carte4, list5) → list6Element(list6, Element[list1, 5]) → carte5KeepIf(x ≠ carte5, list6) → list7Element(list7, Element[list1, 6]) → carte6KeepIf(x ≠ carte6, list7) → list8Element(list8, Element[list1, 7]) → carte7KeepIf(x ≠ carte7, list8) → list9Element(list9, Element[list1, 8]) → carte8KeepIf(x ≠ carte8, list9) → list10Element(list10, Element[list1, 9]) → carte9KeepIf(x ≠ carte9, list10) → list11Element(list11, Element[list1, 10]) → carte10KeepIf(x ≠ carte10, list11) → list12Element(list12, Element[list1, 11]) → carte11KeepIf(x ≠ carte11, list12) → list13Element(list13, Element[list1, 12]) → carte12KeepIf(x ≠ carte12, list13) → list14Element(list14, Element[list1, 13]) → carte13KeepIf(x ≠ carte13, list14) → list15Element(list15, Element[list1, 14]) → carte14KeepIf(x ≠ carte14, list15) → list16Element(list16, Element[list1, 15]) → carte15KeepIf(x ≠ carte15, list16) → puSequence(Element[pu, (3 * k) - 2], k, 1, 7) → pu1Element(pu1, 7) → carte22Element(pu1, 1) → carte21Element(pu1, 6) → carte20Element(pu1, 2) → carte19Element(pu1, 5) → carte18Element(pu1, 3) → carte17Element(pu1, 4) → carte16Union(list0, v1) → u1Union(v2, u1) → u2Union(v3, u2) → u3Union(v4, u3) → u4Union(v5, u4) → u5Union(v6, u5) → u6Union(v7, u6) → u7Element(u, a + 1) → list00Intersection(s1, list00) → t1Length(list1) → nDiv(Length[t1], 6) → n1Intersection(s2, list00) → t2Intersection(s3, list00) → t3Intersection(s4, list00) → t4Intersection(s5, list00) → t5Intersection(s6, list00) → t6Intersection(s7, list00) → t7Intersection(s8, list00) → t8Intersection(s9, list00) → t9Intersection(s10, list00) → t10Intersection(s11, list00) → t11Intersection(s12, list00) → t12Intersection(s13, list00) → t13Intersection(s14, list00) → t14Div(Length[t2], 6) → n2Div(Length[t3], 6) → n3Div(Length[t4], 6) → n4Div(Length[t5], 6) → n5Div(Length[t6], 6) → n6Div(Length[t7], 6) → n7Div(Length[t8], 6) → n8Div(Length[t9], 6) → n9Div(Length[t10], 6) → n10Div(Length[t11], 6) → n11Div(Length[t12], 6) → n12Div(Length[t13], 6) → n13Div(Length[t14], 6) → n14Translate(Element[cartes, carte1], Vector[(0, 0), ((Mod[carte1 - 1, 6] * 2), (Div[carte1 - 1, 6] * 2.8)) + B_3]) → cart1Translate(Element[cartes, carte2], Vector[(0, 0), ((Mod[carte2 - 1, 6] * 2), (Div[carte2 - 1, 6] * 2.8)) + B_3]) → cart2Translate(Element[cartes, carte3], Vector[(0, 0), ((Mod[carte3 - 1, 6] * 2), (Div[carte3 - 1, 6] * 2.8)) + B_3]) → cart3Translate(Element[cartes, carte4], Vector[(0, 0), ((Mod[carte4 - 1, 6] * 2), (Div[carte4 - 1, 6] * 2.8)) + B_3]) → cart4Translate(Element[cartes, carte5], Vector[(0, 0), ((Mod[carte5 - 1, 6] * 2), (Div[carte5 - 1, 6] * 2.8)) + B_3]) → cart5Translate(Element[cartes, carte6], Vector[(0, 0), ((Mod[carte6 - 1, 6] * 2), (Div[carte6 - 1, 6] * 2.8)) + B_3]) → cart6Translate(Element[cartes, carte7], Vector[(0, 0), ((Mod[carte7 - 1, 6] * 2), (Div[carte7 - 1, 6] * 2.8)) + B_3]) → cart7Translate(Element[cartes, carte8], Vector[(0, 0), ((Mod[carte8 - 1, 6] * 2), (Div[carte8 - 1, 6] * 2.8)) + B_3]) → cart8Translate(Element[cartes, carte9], Vector[(0, 0), ((Mod[carte9 - 1, 6] * 2), (Div[carte9 - 1, 6] * 2.8)) + B_3]) → cart9Translate(Element[cartes, carte10], Vector[(0, 0), ((Mod[carte10 - 1, 6] * 2), (Div[carte10 - 1, 6] * 2.8)) + B_3]) → cart10Translate(Element[cartes, carte11], Vector[(0, 0), ((Mod[carte11 - 1, 6] * 2), (Div[carte11 - 1, 6] * 2.8)) + B_3]) → cart11Translate(Element[cartes, carte12], Vector[(0, 0), ((Mod[carte12 - 1, 6] * 2), (Div[carte12 - 1, 6] * 2.8)) + B_3]) → cart12Translate(Element[cartes, carte13], Vector[(0, 0), ((Mod[carte13 - 1, 6] * 2), (Div[carte13 - 1, 6] * 2.8)) + B_3]) → cart13Translate(Element[cartes, carte14], Vector[(0, 0), ((Mod[carte14 - 1, 6] * 2), (Div[carte14 - 1, 6] * 2.8)) + B_3]) → cart14Translate(Element[cartes, carte15], Vector[(0, 0), ((Mod[carte15 - 1, 6] * 2), (Div[carte15 - 1, 6] * 2.8)) + B_3]) → cart15Translate(Element[cartes, carte16], Vector[(0, 0), ((Mod[carte16 - 1, 6] * 2), (Div[carte16 - 1, 6] * 2.8)) + B_3]) → pic39Translate(Element[cartes, carte17], Vector[(0, 0), ((Mod[carte17 - 1, 6] * 2), (Div[carte17 - 1, 6] * 2.8)) + B_3]) → cart17Translate(Element[cartes, carte18], Vector[(0, 0), ((Mod[carte18 - 1, 6] * 2), (Div[carte18 - 1, 6] * 2.8)) + B_3]) → cart18Translate(Element[cartes, carte19], Vector[(0, 0), ((Mod[carte19 - 1, 6] * 2), (Div[carte19 - 1, 6] * 2.8)) + B_3]) → cart19Translate(Element[cartes, carte20], Vector[(0, 0), ((Mod[carte20 - 1, 6] * 2), (Div[carte20 - 1, 6] * 2.8)) + B_3]) → cart20Translate(Element[cartes, carte21], Vector[(0, 0), ((Mod[carte21 - 1, 6] * 2), (Div[carte21 - 1, 6] * 2.8)) + B_3]) → cart21Element(q, a + 1) → kTranslate(Element[cartes, carte22], Vector[(0, 0), ((Mod[carte22 - 1, 6] * 2), (Div[carte22 - 1, 6] * 2.8)) + B_3]) → cart22
AI Drawing Prompt Reference
Draw a simulation of drawing 14 random mahjong tiles from a deck, ensuring no duplicates. First, generate a deck of 36 tiles, then sequentially draw 14 tiles while keeping them unique. Next, split these 14 tiles into two groups of 7 to simulate the drawing process. Finally, combine all the tiles to form a complete deck.
The prompt above was compiled from the original drawing commands and is for reference only.