Prédire une somme de 5 nombres

Le\;nombre\;N_1

Le\;nombre\;N_2

Le\;nombre\;N_3

Le\;nombre\;N_4

Le\;nombre\;N_5

unité

dizaine

centaine

unité\;des\
\;\;milles

\;\;dizaine\
des\;milles

Nombre\
\;obtenu

C

Prédire\;la\;somme\;de\;5\;nombres\;de\;5\;chiffres\;dès\
le\;1er\;choix\;qui\;sera\;écrit\;sur\;la\;ligne\;3\;du\;tableau

Règles\; du \;jeu:\
*\;le\;joueur:\
\;\;-\;déplace\;lentement\;le\;point\;C\;sur\;le\;segment\;rouge\
\;\;-\;manie\;chacun\; des\; curseurs\; qui\;apparaissent\
successivement\;dans\; les\; cases \;de\; la\; ligne \;3\;du\;tableau:\
 ils\;permettent\;de\;choisir\;les\;chiffres\;du\;nombre\;N_3\
\;\
*\;l'ordinateur\;prédit\; et \;affiche\;la \;somme\; des\; cinq \; nombres\ 
(desquels\;on\; ne\; connaît\;qu'un\; seul\;jusqu'à\;présent)\;     dans\ 
la\; 1ère\;cellule\;de \;la\;dernière\;ligne\

\;\
*\;le\; joueur \;continue\; à \;déplacer\; lentement \;le\; point\; C\; et\; à \
manier\; les\;curseurs\;qui\;apparaissent\;dans\
\;\;-\;ligne\;1:\;ça\; lui\; permet\; de\; choisir\; les\; chiffres\;du\; nombre\; N_1\
\;\;-\;ligne\;2:\;ça\;lui\;permet \;de\; choisir\; les\; chiffres\; du\; nombre\; N_2\
\;\
*\;l'ordinateur\; affiche\; successivement:\
\;\;-\;les\;chiffres\; du\; nombre\; N_4\; dans\; la\; ligne\; 4\
\;\;-\;les\; chiffres\; du\; nombre\; N_5\; dans\; la\; ligne\; 5\
\;\;-\;calcule\; et\; affiche\; la\; somme\; S_c\;des\;nombres\; N_1,\; N_2,\; N_3,\; N_4\ 
et\; N_5\; dans\; la\; 2ème\; cellule\; de\; la\; dernière\; ligne\
*\;le joueur\;compare\; la \;somme\; prédite\; et\; la\; somme\; calculée.

Hédi\; Abderrahim

c_1 = 6 (slider from 0 to 9, step 1)
d_1 = 0 (slider from 0 to 9, step 1)
u_1 = 0 (slider from 0 to 9, step 1)
N_1: c_1
um_1 = 5 (slider from 0 to 9, step 1)
dm_1 = 9 (slider from 1 to 9, step 1)
n_1: u_1 + (10 * d_1) + (100 * c_1) + (1000 * um_1) + (10000 * dm_1)
texte1: "N_1=" + (LaTeX[n_1]) + ""
n_5: 9 - u_1 + (10 * (9 - d_1)) + (100 * (9 - c_1)) + (1000 * (9 - um_1)) + (10000 * (9 - dm_1))
texte2: "N_5=" + (LaTeX[n_5]) + ""
u_2 = 0 (slider from 0 to 9, step 1)
d_2 = 9 (slider from 0 to 9, step 1)
c_2 = 0 (slider from 0 to 9, step 1)
um_2 = 2 (slider from 0 to 9, step 1)
dm_2 = 8 (slider from 1 to 9, step 1)
n_2: u_2 + (10 * d_2) + (100 * c_2) + (1000 * um_2) + (10000 * dm_2)
texte3: "N_2=" + (LaTeX[n_2]) + ""
n_4: 9 - u_2 + (10 * (9 - d_2)) + (100 * (9 - c_2)) + (1000 * (9 - um_2)) + (10000 * (9 - dm_2))
texte4: "N_4=" + (LaTeX[n_4]) + ""
u_3 = 2 (slider from 2 to 9, step 1)
d_3 = 9 (slider from 0 to 9, step 1)
c_3 = 0 (slider from 0 to 9, step 1)
um_3 = 9 (slider from 0 to 9, step 1)
dm_3 = 1 (slider from 1 to 9, step 1)
n_3: u_3 + (10 * d_3) + (100 * c_3) + (1000 * um_3) + (10000 * dm_3)
texte5: "N_3=" + (LaTeX[n_3]) + ""
u_s: u_3
s: u_3 - 2 + (10 * d_3) + (100 * c_3) + (1000 * um_3) + (10000 * dm_3) + 200000
A = (0, 4)
B = (12, 4)
C_2 = (-2, 3)
D = (-2, 2)
E = (-2.02, 0.98)
F = (0, -2)
G = (12, -2)
H = (11.98, 0.98)
I = (12, 2)
J = (12, 3)
K = (10, -2)
L = (8, -1)
M = (6, -2)
N = (4, -2)
O = (2, -1)
P = (2, 4)
Q = (4, 4.06)
R = (8, 4)
S = (6, 4)
T = (10, 4)
a = Segment(A, B)
b = Segment(B, G)
c = Segment(G, F)
e = Segment(P, O)
f = Segment(E, H)
g = Segment(D, I)
h = Segment(J, C_2)
i = Segment(Q, N)
j = Segment(S, M)
k = Segment(R, L)
l = Segment(T, K)
m = Segment(A, T)
n = Segment(T, A)
U = (-2, 4)
V = (-2, -2)
p = Segment(U, V)
q = Segment(A, U)
r = Segment(F, V)
W = Point(f)
d = Segment(A, W)
Z = Point(p)
A_1 = Point(p)
B_1 = Point(b)
C_1 = Point(b)
t = Segment(Z, B_1)
a_1 = Segment(C_1, A_1)
D_1 = Point(a_1)
b_1 = Segment(W, D_1)
E_1 = (0, 5)
F_1 = (2, 5)
G_1 = (4, 5)
H_1 = (6, 5)
I_1 = (8, 5)
J_1 = (10, 5)
K_1 = (12, 5)
e_1 = Segment(E_1, K_1)
f_1 = Segment(E_1, A)
g_1 = Segment(F_1, P)
h_1 = Segment(G_1, Q)
i_1 = Segment(H_1, S)
j_1 = Segment(I_1, R)
k_1 = Segment(J_1, T)
l_1 = Segment(K_1, B)
n_6: u_3 + (10 * d_3) + (100 * c_3) + (1000 * um_3) + (10000 * dm_3)
s_1: u_3 - 2 + (10 * d_3) + (100 * c_3) + (1000 * um_3) + (10000 * dm_3) + 200000
texte6_1: "La\;somme\;prédite\;est:\;S_p=" + (LaTeX[s_1]) + ""
s_c: n_1 + n_2 + n_3 + n_4 + n_5
texte6: "La\;somme\;calculée\;est:S_c=" + (LaTeX[s_c]) + ""
L_1 = Intersect(i, a_1)
M_1 = Intersect(j, a_1)
O_1 = Midpoint(L_1, M_1)
P_1 = Midpoint(M, N)
m_1 = Segment(P_1, O_1)
p_1 = Segment(G_1, L_1)
q_1 = Segment(S, M_1)
u_4: 9 - u_2
texte14: "" + (LaTeX[u_4]) + ""
u_5: 9 - u_1
texte15: "" + (LaTeX[u_5]) + ""
d_5: 9 - d_1
texte16: "" + (LaTeX[d_5]) + ""
d_4: 9 - d_2
texte17: "" + (LaTeX[d_4]) + ""
c_5: 9 - c_1
texte18: "" + (LaTeX[c_5]) + ""
c_4: 9 - c_2
texte19: "" + (LaTeX[c_4]) + ""
um_4: 9 - um_2
texte20: "" + (LaTeX[um_4]) + ""
um_5: 9 - um_1
texte21: "" + (LaTeX[um_5]) + ""
dm_5: 9 - dm_1
texte22: "" + (LaTeX[dm_5]) + ""
dm_4: 9 - dm_2
texte23: "" + (LaTeX[dm_4]) + ""
Q_1 = (-1.48, -2.96)
R_1 = Point(Circle[Q_1, 13])
r_1 = Segment(Q_1, R_1)
C = Point(r_1)
v = Distance(Q_1, C)
S_1 = (19.7, -4.06)