busca_punot
Author: Rafael Losada Liste

Comprobar

a = 1
b1 = Random(-4, 5)
b = Random(-4, 5)
A = (4, 6)
B = (4, 5)
C = (11, 5)
D = (11, 6)
polígono1, a_1, b_1, c, d = Polygon(A, B, C, D)
pfondo: {Polygon[(a - 1, 5.5), (a + 1, 5.5), (a + 1, -4.5), (a - 1, -4.5)]}
E: (a, b)
A1 = 0
A2 = 0
A3 = 0
A4 = 0
A5 = 0
A6 = 0
A7 = 0
A8 = 0
A9 = 0
A10 = 0
intentos: 0
puntos: 0
texto1: "Aciertos : " + puntos + "/" + intentos + ""
p1, t, c_1, d_1, e_1 = Polygon((a - 0.25, 1 - 0.25), (a + 0.25, 1 - 0.25), (a + 0.25, 1 + 0.25), (a - 0.25, 1 + 0.25))
p2, f_1, g_1, h_1, i_1 = Polygon((a - 0.25, 2 - 0.25), (a + 0.25, 2 - 0.25), (a + 0.25, 2 + 0.25), (a - 0.25, 2 + 0.25))
p3, j_1, k_1, l_1, m_1 = Polygon((a - 0.25, 3 - 0.25), (a + 0.25, 3 - 0.25), (a + 0.25, 3 + 0.25), (a - 0.25, 3 + 0.25))
p4, n_1, p_1, q_1, r_1 = Polygon((a - 0.25, 4 - 0.25), (a + 0.25, 4 - 0.25), (a + 0.25, 4 + 0.25), (a - 0.25, 4 + 0.25))
p5, s_1, t_1, a_2, b_2 = Polygon((a - 0.25, 5 - 0.25), (a + 0.25, 5 - 0.25), (a + 0.25, 5 + 0.25), (a - 0.25, 5 + 0.25))
p0, c_2, d_2, e_2, f_2 = Polygon((a - 0.25, 0 - 0.25), (a + 0.25, 0 - 0.25), (a + 0.25, 0 + 0.25), (a - 0.25, 0 + 0.25))
p1', g_2, h_2, i_2, j_2 = Polygon((a - 0.25, -1 - 0.25), (a + 0.25, -1 - 0.25), (a + 0.25, -1 + 0.25), (a - 0.25, -1 + 0.25))
p2', k_2, l_2, m_2, n_2 = Polygon((a - 0.25, -2 - 0.25), (a + 0.25, -2 - 0.25), (a + 0.25, -2 + 0.25), (a - 0.25, -2 + 0.25))
p3', p_2, q_2, r_2, s_2 = Polygon((a - 0.25, -3 - 0.25), (a + 0.25, -3 - 0.25), (a + 0.25, -3 + 0.25), (a - 0.25, -3 + 0.25))
p4', t_2, a_3, b_3, c_3 = Polygon((a - 0.25, -4 - 0.25), (a + 0.25, -4 - 0.25), (a + 0.25, -4 + 0.25), (a - 0.25, -4 + 0.25))
bb = If(b1 ≟ b, -3, b1)
suma: b + bb
producto: (b * bb)
op1: false
op2: false
op3: false
op4: false
op5: false
op0: false
op1': false
op2': false
op3': false
op4': false
T2_2: "Pulsa en los pisos que sumen " + suma + " y cuyo producto sea " + producto + ".
Cuando acabes, pulsa el siguiente botón:"
n0 = If(op0, 0, 10)
n1 = If(op1, 1, 10)
n2 = If(op2, 2, 10)
n3 = If(op3, 3, 10)
n4 = If(op4, 4, 10)
n5 = If(op5, 5, 10)
n1' = If(op1', -1, 10)
n2' = If(op2', -2, 10)
n4' = If(op4', -4, 10)
n3' = If(op3', -3, 10)
lista1: {n0, n1, n2, n3, n4, n5, n1', n2', n3', n4'}
lista2 = KeepIf(x  <  10, lista1)
piso1 = Element(lista2, 1)
piso2 = Element(lista2, 2)
suma1: piso1 + piso2
producto1: (piso1 * piso2)
acierto = If(suma1 ≟ suma ∧ producto1 ≟ producto, true, false)