SUMA

DIFERENCIA

PRODUCTO

SUMA

yB1 = 2.1 (slider from -1.05 to 2.1, step 1.05)
xB1 = 9.75 (slider from 9 to 10.5, step 0.75)
yA1 = 2.1 (slider from -1.05 to 2.1, step 1.05)
xA1 = -3 (slider from -3.75 to -2.25, step 0.75)
Juego = 1 (slider from 1 to 20, step 1)
A1: (xA1, yA1)
cA1 = Circle(A1, 0.5)
B1: (xB1, yB1)
cB1 = Circle(B1, 0.5)
xA2 = -3 (slider from -3.75 to -2.25, step 0.75)
xA3 = -3 (slider from -3.75 to -2.25, step 0.75)
xA4 = -3 (slider from -3.75 to -2.25, step 0.75)
xA5 = -3 (slider from -3.75 to -2.25, step 0.75)
xA6 = -3 (slider from -3.75 to -2.25, step 0.75)
xA7 = -3 (slider from -3.75 to -2.25, step 0.75)
xA8 = -3 (slider from -3.75 to -2.25, step 0.75)
xA9 = -3 (slider from -3.75 to -2.25, step 0.75)
xA10 = -3 (slider from -3.75 to -2.25, step 0.75)
xA11 = -3 (slider from -3.75 to -2.25, step 0.75)
xA12 = -3 (slider from -3.75 to -2.25, step 0.75)
xA13 = -3 (slider from -3.75 to -2.25, step 0.75)
xA14 = -3 (slider from -3.75 to -2.25, step 0.75)
xA15 = -3 (slider from -3.75 to -2.25, step 0.75)
xA16 = -3 (slider from -3.75 to -2.25, step 0.75)
xA17 = -3 (slider from -3.75 to -2.25, step 0.75)
xA18 = -3 (slider from -3.75 to -2.25, step 0.75)
xA19 = -3 (slider from -3.75 to -2.25, step 0.75)
xA20 = -3 (slider from -3.75 to -2.25, step 0.75)
xB2 = 9.75 (slider from 9 to 10.5, step 0.75)
xB3 = 9.75 (slider from 9 to 10.5, step 0.75)
xB4 = 9.75 (slider from 9 to 10.5, step 0.75)
xB5 = 9.75 (slider from 9 to 10.5, step 0.75)
xB6 = 9.75 (slider from 9 to 10.5, step 0.75)
xB7 = 9.75 (slider from 9 to 10.5, step 0.75)
xB8 = 9.75 (slider from 9 to 10.5, step 0.75)
xB9 = 9.75 (slider from 9 to 10.5, step 0.75)
xB10 = 9.75 (slider from 9 to 10.5, step 0.75)
xB11 = 9.75 (slider from 9 to 10.5, step 0.75)
xB12 = 9.75 (slider from 9 to 10.5, step 0.75)
xB13 = 9.75 (slider from 9 to 10.5, step 0.75)
xB14 = 9.75 (slider from 9 to 10.5, step 0.75)
xB15 = 9.75 (slider from 9 to 10.5, step 0.75)
xB16 = 9.75 (slider from 9 to 10.5, step 0.75)
xB17 = 9.75 (slider from 9 to 10.5, step 0.75)
xB18 = 9.75 (slider from 9 to 10.5, step 0.75)
xB19 = 9.75 (slider from 9 to 10.5, step 0.75)
xB20 = 9.75 (slider from 9 to 10.5, step 0.75)
yA2 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA3 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA4 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA5 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA6 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA7 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA8 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA9 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA10 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA11 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA12 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA13 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA14 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA15 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA16 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA17 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA18 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA19 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yA20 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB2 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB3 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB4 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB5 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB6 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB7 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB8 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB9 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB10 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB11 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB12 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB13 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB14 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB15 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB16 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB17 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB18 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB19 = 2.1 (slider from -1.05 to 2.1, step 1.05)
yB20 = 2.1 (slider from -1.05 to 2.1, step 1.05)
A2: (xA2, yA2)
A3: (xA3, yA3)
A4: (xA4, yA4)
A5: (xA5, yA5)
A6: (xA6, yA6)
A7: (xA7, yA7)
A8: (xA8, yA8)
A9: (xA9, yA9)
A10: (xA10, yA10)
A11: (xA11, yA11)
A12: (xA12, yA12)
A13: (xA13, yA13)
A14: (xA14, yA14)
A15: (xA15, yA15)
A16: (xA16, yA16)
A17: (xA17, yA17)
A18: (xA18, yA18)
A19: (xA19, yA19)
A20: (xA20, yA20)
B2: (xB2, yB2)
B3: (xB3, yB3)
B4: (xB4, yB4)
B5: (xB5, yB5)
B6: (xB6, yB6)
B7: (xB7, yB7)
B8: (xB8, yB8)
B9: (xB9, yB9)
B10: (xB10, yB10)
B11: (xB11, yB11)
B12: (xB12, yB12)
B13: (xB13, yB13)
B14: (xB14, yB14)
B15: (xB15, yB15)
B16: (xB16, yB16)
B17: (xB17, yB17)
B18: (xB18, yB18)
B19: (xB19, yB19)
B20: (xB20, yB20)
cA2 = Circle(A2, 0.5)
cA3 = Circle(A3, 0.5)
cA4 = Circle(A4, 0.5)
cA5 = Circle(A5, 0.5)
cA6 = Circle(A6, 0.5)
cA7 = Circle(A7, 0.5)
cA8 = Circle(A8, 0.5)
cA9 = Circle(A9, 0.5)
cA10 = Circle(A10, 0.5)
cA11 = Circle(A11, 0.5)
cA12 = Circle(A12, 0.5)
cA13 = Circle(A13, 0.5)
cA14 = Circle(A14, 0.5)
cA15 = Circle(A15, 0.5)
cA16 = Circle(A16, 0.5)
cA17 = Circle(A17, 0.5)
cA18 = Circle(A18, 0.5)
cA19 = Circle(A19, 0.5)
cA20 = Circle(A20, 0.5)
cB2 = Circle(B2, 0.5)
cB3 = Circle(B3, 0.5)
cB4 = Circle(B4, 0.5)
cB5 = Circle(B5, 0.5)
cB6 = Circle(B6, 0.5)
cB7 = Circle(B7, 0.5)
cB8 = Circle(B8, 0.5)
cB9 = Circle(B9, 0.5)
cB10 = Circle(B10, 0.5)
cB11 = Circle(B11, 0.5)
cB12 = Circle(B12, 0.5)
cB13 = Circle(B13, 0.5)
cB14 = Circle(B14, 0.5)
cB15 = Circle(B15, 0.5)
cB16 = Circle(B16, 0.5)
cB17 = Circle(B17, 0.5)
cB18 = Circle(B18, 0.5)
cB19 = Circle(B19, 0.5)
cB20 = Circle(B20, 0.5)
lista1a = Sequence(Random[1, 9], t, 1, 20)
lista1b = Sequence(Random[1, 9], t, 1, 20)
lista2a = Sequence(If[Element[lista1a, t] < Element[lista1b, t], Element[lista1b, t], Element[lista1a, t]], t, 1, 20)
lista2b = Sequence(If[Element[lista1a, t] > Element[lista1b, t], Element[lista1b, t], Element[lista1a, t]], t, 1, 20)
suma = Sequence(Element[lista2a, t] + Element[lista2b, t], t, 1, 20)
diferencia = Sequence(Element[lista2a, t] - Element[lista2b, t], t, 1, 20)
producto = Sequence((Element[lista2a, t] * Element[lista2b, t]), t, 1, 20)
p = Element(producto, Juego)
s = Element(suma, Juego)
d = Element(diferencia, Juego)
Tipo = 1 (slider from 1 to 3, step 1)
arriba = If(Tipo ≟ 1, s, p)
abajo = If(Tipo ≟ 2, s, d)
incArriba = If(arriba > 9, 0.2, 0)
texto1 = Text("" + arriba, (3.2 - incArriba, 2.32))
incAbajo = If(abajo > 9, 0.2, 0)
texto6 = Text("" + abajo, (3.2 - incAbajo, 2.32 - 5))
entradaA: ((28 * Object["xA" + Juego]) - (60 * Object["yA" + Juego]) + 189) / 21
a0 = If(entradaA > 0, entradaA, 0)
entradaB: ((28 * Object["xB" + Juego]) - (60 * Object["yB" + Juego]) - 168) / 21
b0 = If(entradaB > 0, entradaB, 0)
a = If(a0 > b0, a0, b0)
b = If(a0 < b0, a0, b0)
texto7 = Text("" + a0, (0.7, -0.18))
texto8 = Text("" + b0, (5.7, -0.18))
entradaAlista = Sequence(((28 * Object["xA" + (t)]) - (60 * Object["yA" + (t)]) + 189) / 21, t, 1, 20)
a0lista = Sequence(If[Element[entradaAlista, t] > 0, Element[entradaAlista, t], 0], t, 1, 20)
entradaBlista = Sequence(((28 * Object["xB" + (t)]) - (60 * Object["yB" + (t)]) - 168) / 21, t, 1, 20)
b0lista = Sequence(If[Element[entradaBlista, t] > 0, Element[entradaBlista, t], 0], t, 1, 20)
alista = Sequence(If[Element[a0lista, t] > Element[b0lista, t], Element[a0lista, t], Element[b0lista, t]], t, 1, 20)
blista = Sequence(If[Element[a0lista, t] < Element[b0lista, t], Element[a0lista, t], Element[b0lista, t]], t, 1, 20)
coincideA = Sequence(If[Element[alista, t] ≟ Element[lista2a, t], 1, 0], t, 1, 20)
coincideB = Sequence(If[Element[blista, t] ≟ Element[lista2b, t], 1, 0], t, 1, 20)
coincidenAB = Sequence(If[Element[coincideA, t] ≟ 1 ∧ Element[coincideB, t] ≟ 1, 1, 0], t, 1, 20)
puntos: (5 * Sum[coincidenAB])
texto9: "Puntos: " + puntos