Esconder la respuesta

Ver la respuesta

t = 6 (slider from 0 to 25, step 1)
i: round(random() * t * 100.0)
T1: "" + i
Pair = Mod(i, 6.0)
B = (12.493673389060467, 27.46013257668273)
un = If(Pair ≟ 0.0, If[t ≥ 1.0, 1.0, 0.0], 0.0)
C = (0, 35)
D_1 = (15, 35)
E = (15, 25)
F = (0, 25)
compteface = If(t ≥ 1.0, un + 1.0, 0.0)
Increment: round(t - 1.0)
vraiface = If(Pair ≥ 19.0, 2.0, If[Pair ≟ 1.0, Increment, t])
vraipile = If(Pair ≥ 19.0, 2.0, If[Pair ≟ 0.0, Increment, t - 1.0])
K = (5, 15)
L = (20, 15)
M = (20, 0)
N = (5, 0)
O = (12.293352556205992, 7.492221033898863)
A = (5, 15)
G = (20, 15)
H = (20, 0)
I = (5, 0)
poly1, a, g, h, i_1 = Polygon(A, G, H, I)
J = (15.928939359372334, 11.127807837065205)
P = (9.09403616941961, 3.5657872864792135)
Q = (16.946903664258908, 12.000348669825128)
R = (12.293352556205992, 7.201374089645555)
S = (7.7852249202797275, 2.547822981592638)
T = (8.512342280912996, 11.418654781318512)
U = (15.928939359372334, 11.273231309191859)
V = (8.803189225166303, 3.8566342307325208)
W = (16.074362831498988, 3.8566342307325208)
Z = (8.512342280912996, 11.564078253445166)
A1 = (16.51063324787895, 11.418654781318512)
B1 = (8.366918808786343, 3.42036381435256)
C1 = (16.219786303625643, 3.42036381435256)
D1 = (12.293352556205992, 7.6376445060255165)
E1 = (8.076071864533034, 11.70950172557182)
F1 = (16.946903664258908, 11.70950172557182)
G1 = (17.092327136385563, 2.838669925845945)
H1 = (8.076071864533034, 6.9105271453922485)
I1 = (8.076071864533034, 2.6932464537192913)
J1 = (16.946903664258908, 7.201374089645555)
T2: "Lancer n° " + t
K1 = (35, 15)
L1 = (50, 15)
M1 = (50, 0)
N1 = (35, 0)
poly2, k1, l1, m1, n1 = Polygon(K1, L1, M1, N1)
j: round(random() * t * 100.0)
POUR = Mod(j, 6.0)
O1 = (42.542400028506066, 7.196228090132063)
P1 = (38.07272156002754, 2.3292448688998877)
Q1 = (47.11140468517301, 11.765232746799002)
R1 = (37.67541680727389, 2.3292448688998877)
S1 = (42.24442146394083, 7.196228090132063)
U1 = (47.21073087336141, 12.261863687741062)
V1 = (37.973395371839125, 11.765232746799002)
W1 = (37.973395371839125, 2.6272234334651228)
Z1 = (47.21073087336141, 11.765232746799002)
A2 = (47.31005706154983, 2.8258758098419463)
B2 = (42.44307384031765, 7.295554278320474)
C2 = (37.774742995462304, 11.963885123175826)
D2 = (47.40938324973824, 12.16253749955265)
E2 = (47.21073087336141, 2.4285710570882992)
F2 = (37.87406918365071, 2.6272234334651228)
G2 = (37.87406918365071, 7.196228090132063)
H2 = (37.973395371839125, 12.16253749955265)
I2 = (37.973395371839125, 2.4285710570882992)
J2 = (47.31005706154983, 12.261863687741062)
K2 = (47.40938324973824, 7.394880466508886)
L2 = (47.31005706154983, 2.6272234334651228)
poly3, k1_1, l1_1, m1_1, n1_1 = Polygon(K1, L1, M1, N1)
M2 = (27.44481942386748, 9.679382794842356)
N2 = (27.34549323567907, 5.110378138175417)
b = Segment(M2, N2)
O2 = (24.961664719157188, 7.394880466508886)
P2 = (30.027300316766187, 7.394880466508886)
c = Segment(O2, P2)
Q2 = (59.92448296147812, 7.891511407450945)
R2 = (65.08944474727554, 7.891511407450945)
d = Segment(Q2, R2)
S2 = (60, 5)
U2 = (65, 5)
e = Segment(S2, U2)
res: Pair + POUR + 2.0
T3: "" + res
V2 = (73.43284455510212, 10.47399230034965)
W2 = (82.17354911568235, 10.47399230034965)
Z2 = (82.07422292749393, 2.0312663043346526)
A3 = (73.63149693147894, 2.130592492523064)
poly4, v2, w2, z2, a3 = Polygon(V2, W2, Z2, A3)
f = 0 (slider from 0 to 1, step 1)
D: (res, -1.0 * 19.32)