Legespiel
Author: Mag.G.Wengler

Bewege die Quadrate mit gedrückter linker Maustaste in den Quadratrahmen.
Die Quadrate sollen aber auf jeder Seite mit dem Nachbarquadrat zusammen passen.

Setze die Quadrate so in den blauen Rahmen,
dass sie an den Grenzen zum Nachbarquadrat
farblich genau zusammenpassen!

A = (-4, -8)
B = (4, -8)
C = (-4, 0)
D = (4, 0)
a = Segment(A, B)
b = Segment(B, D)
c = Segment(D, C)
d = Segment(C, A)
E = (-5, 7)
e = 2
f = 0
F: (e + x(E), f + y(E))
g = 2
h = 2
G: (g + x(E), h + y(E))
i = 0
j = 2
H: (i + x(E), j + y(E))
Vieleck1, e_1, f_1, g_1, h_1 = Polygon(E, F, G, H)
Vieleck2, k, f_2, l, m, I, J = Polygon((E + F) / 2, F, 4)
K = (4, 7)
n = 2
o = 0
L: (n + x(K), o + y(K))
p = 2
q = 2
M: (p + x(K), q + y(K))
r = 0
s = 2
N: (r + x(K), s + y(K))
Vieleck3, k_1, l_1, m_1, n_1 = Polygon(K, L, M, N)
Vieleck4, t, l_2, m_2, a_1 = Polygon((K + L) / 2, L, M, (N + M) / 2)
O = (-2, 10)
u = 2
v = 0
P: (u + x(O), v + y(O))
w = 2
z = 2
Q: (w + x(O), z + y(O))
b_1 = 0
c_1 = 2
R: (b_1 + x(O), c_1 + y(O))
Vieleck5, o_1, p_1, q_1, r_1 = Polygon(O, P, Q, R)
Vieleck6, o_2, d_1, i_1, j_1, S, T = Polygon(O, (O + P) / 2, 4)
U = (1, 10)
s_1 = 2
t_1 = 0
V: (s_1 + x(U), t_1 + y(U))
u_1 = 2
v_1 = 2
W: (u_1 + x(U), v_1 + y(U))
w_1 = 0
z_1 = 2
Z: (w_1 + x(U), z_1 + y(U))
Vieleck7, u_2, v_2, w_2, z_2 = Polygon(U, V, W, Z)
Vieleck9, d_2, z_4, e_2, g_2, C_1, D_1 = Polygon((Z + W) / 2, Z, 4)
A_1 = (4, 10)
a_2 = 2
b_2 = 0
B_1: (a_2 + x(A_1), b_2 + y(A_1))
c_2 = 2
h_2 = 2
E_1: (c_2 + x(A_1), h_2 + y(A_1))
i_2 = 0
j_2 = 2
F_1: (i_2 + x(A_1), j_2 + y(A_1))
Vieleck8, a_3, b_3, e_3, f_3 = Polygon(A_1, B_1, E_1, F_1)
Vieleck10, k_2, n_2, p_2, q_2, G_1, H_1 = Polygon(E_1, (E_1 + F_1) / 2, 4)
I_1 = (-5, 4)
r_2 = 2
s_2 = 0
J_1: (r_2 + x(I_1), s_2 + y(I_1))
t_2 = 2
c_3 = 2
K_1: (t_2 + x(I_1), c_3 + y(I_1))
d_3 = 0
g_3 = 2
L_1: (d_3 + x(I_1), g_3 + y(I_1))
Vieleck11, i_3, j_3, k_3, l_3 = Polygon(I_1, J_1, K_1, L_1)
Vieleck12, i_4, h_3, m_3, l_4 = Polygon(I_1, (I_1 + J_1) / 2, (L_1 + K_1) / 2, L_1)
M_1 = (1, 4)
n_3 = 2
o_3 = 0
N_1: (n_3 + x(M_1), o_3 + y(M_1))
p_3 = 2
q_3 = 2
O_1: (p_3 + x(M_1), q_3 + y(M_1))
r_3 = 0
s_3 = 2
P_1: (r_3 + x(M_1), s_3 + y(M_1))
Vieleck13, m_4, n_4, o_4, p_4 = Polygon(M_1, N_1, O_1, P_1)
Vieleck14, t_3, a_4, o_5, p_5 = Polygon((M_1 + P_1) / 2, (N_1 + O_1) / 2, O_1, P_1)
Q_1 = (-2, 4)
u_3 = 2
v_3 = 0
R_1: (u_3 + x(Q_1), v_3 + y(Q_1))
w_3 = 2
z_3 = 2
S_1: (w_3 + x(Q_1), z_3 + y(Q_1))
b_4 = 0
c_4 = 2
T_1: (b_4 + x(Q_1), c_4 + y(Q_1))
Vieleck15, q_4, r_4, s_4, t_4 = Polygon(Q_1, R_1, S_1, T_1)
Vieleck16, q_5, r_5, d_4, e_4 = Polygon(Q_1, R_1, (R_1 + S_1) / 2, (Q_1 + T_1) / 2)
U_1 = (4, 4)
f_4 = 2
g_4 = 0
V_1: (f_4 + x(U_1), g_4 + y(U_1))
h_4 = 2
j_4 = 2
W_1: (h_4 + x(U_1), j_4 + y(U_1))
k_4 = 0
u_4 = 2
Z_1: (k_4 + x(U_1), u_4 + y(U_1))
Vieleck17, u_5, v_4, w_4, z_5 = Polygon(U_1, V_1, W_1, Z_1)
Vieleck18, a_5, b_5, c_5, d_5, e_5, f_5 = Polygon((U_1 + V_1) / 2, V_1, W_1, Z_1, (Z_1 + U_1) / 2, (U_1 + W_1) / 2)
A_2 = (-5, 1)
g_5 = 2
h_5 = 0
B_2: (g_5 + x(A_2), h_5 + y(A_2))
i_5 = 2
j_5 = 2
C_2: (i_5 + x(A_2), j_5 + y(A_2))
k_5 = 0
l_5 = 2
D_2: (k_5 + x(A_2), l_5 + y(A_2))
Vieleck19, a_6, b_6, c_6, d_6 = Polygon(A_2, B_2, C_2, D_2)
Vieleck20, a_7, b_7, c_7, m_5, n_5, s_5 = Polygon(A_2, B_2, C_2, (C_2 + D_2) / 2, (C_2 + A_2) / 2, (A_2 + D_2) / 2)
E_2 = (-2, 1)
t_5 = 2
v_5 = 0
F_2: (t_5 + x(E_2), v_5 + y(E_2))
w_5 = 2
e_6 = 2
G_2: (w_5 + x(E_2), e_6 + y(E_2))
f_6 = 0
g_6 = 2
H_2: (f_6 + x(E_2), g_6 + y(E_2))
Vieleck21, e_7, f_7, g_7, h_6 = Polygon(E_2, F_2, G_2, H_2)
Vieleck22, h_7, e_8, f_8, i_6, j_6, k_6 = Polygon(H_2, E_2, F_2, (F_2 + G_2) / 2, (E_2 + G_2) / 2, (G_2 + H_2) / 2)
I_2 = (1, 1)
l_6 = 2
m_6 = 0
J_2: (l_6 + x(I_2), m_6 + y(I_2))
n_6 = 2
o_6 = 2
K_2: (n_6 + x(I_2), o_6 + y(I_2))
p_6 = 0
q_6 = 2
L_2: (p_6 + x(I_2), q_6 + y(I_2))
Vieleck23, i_7, j_7, k_7, l_7 = Polygon(I_2, J_2, K_2, L_2)
Vieleck24, k_8, l_8, i_8, r_6, s_6, t_6 = Polygon(K_2, L_2, I_2, (I_2 + J_2) / 2, (J_2 + L_2) / 2, (J_2 + K_2) / 2)
M_2 = (1, 7)
u_6 = 2
v_6 = 0
N_2: (u_6 + x(M_2), v_6 + y(M_2))
w_6 = 2
z_6 = 2
O_2: (w_6 + x(M_2), z_6 + y(M_2))
d_7 = 0
m_7 = 2
P_2: (d_7 + x(M_2), m_7 + y(M_2))
Vieleck25, m_8, n_7, o_7, p_7 = Polygon(M_2, N_2, O_2, P_2)
Vieleck26, q_7, n_8, r_7, s_7, Q_2, R_2 = Polygon((M_2 + N_2) / 2, N_2, 4)
Vieleck27, t_7, p_8, a_8, b_8, S_2, T_2 = Polygon((O_2 + P_2) / 2, P_2, 4)
U_2 = (-2, 7)
u_7 = 2
v_7 = 0
V_2: (u_7 + x(U_2), v_7 + y(U_2))
w_7 = 2
z_7 = 2
W_2: (w_7 + x(U_2), z_7 + y(U_2))
c_8 = 0
d_8 = 2
Z_2: (c_8 + x(U_2), d_8 + y(U_2))
Vieleck28, u_8, v_8, w_8, z_8 = Polygon(U_2, V_2, W_2, Z_2)
Vieleck29, u_9, g_8, h_8, j_8, A_3, B_3 = Polygon(U_2, (U_2 + V_2) / 2, 4)
Vieleck30, w_9, q_8, r_8, s_8, C_3, D_3 = Polygon(W_2, (W_2 + Z_2) / 2, 4)
E_3 = (4, 1)
o_8 = 2
t_8 = 0
F_3: (o_8 + x(E_3), t_8 + y(E_3))
a_9 = 2
b_9 = 2
G_3: (a_9 + x(E_3), b_9 + y(E_3))
c_9 = 0
d_9 = 2
H_3: (c_9 + x(E_3), d_9 + y(E_3))
Vieleck31, e_9, f_9, g_9, h_9 = Polygon(E_3, F_3, G_3, H_3)
I_3 = (-5, 10)
i_9 = 2
j_9 = 0
J_3: (i_9 + x(I_3), j_9 + y(I_3))
k_9 = 2
l_9 = 2
K_3: (k_9 + x(I_3), l_9 + y(I_3))
m_9 = 0
n_9 = 2
L_3: (m_9 + x(I_3), n_9 + y(I_3))
Vieleck32, i_{10}, j_{10}, k_{10}, l_{10} = Polygon(I_3, J_3, K_3, L_3)