# (c) David Vajda
# 12/02/2025
# statistik wuerfel liste
import matplotlib.pyplot as plt
import numpy as np
ys=[(1,5), (5,5), (4,5), (3,4), (4,4), (4,5), (1,3), (3,5), (4,6), (1,5), (1,3), (2,2), (2,5), (5,6), (1,3), (6,6), (2,5), (3,4), (4,5), (1,6), (4,5), (2,2), (1,2), (2,6), (4,4), (4,6), (3,6), (1,3), (1,6), (2,3), (2,6), (2,3), (5,5), (1,1), (2,2), (3,3), (4,6), (5,5), (2,3), (1,6), (1,4), (2,5), (1,3), (4,5), (2,4), (4,6), (4,4), (4,6), (1,6), (1,4), (4,4), (3,6), (1,4), (2,5), (2,4), (2,4), (3,5), (3,3), (2,5), (2,3), (2,2), (1,4), (4,5), (2,5), (3,5), (4,4), (2,3), (2,4), (1,4), (4,5), (3,4), (2,3), (2,5), (2,6), (5,5), (5,6), (2,4), (4,5), (2,6), (6,6), (2,3), (1,3), (1,5), (2,4), (1,4), (2,3), (1,3), (4,5), (2,3), (1,2), (3,4), (1,4), (5,5), (2,6), (1,2), (4,5), (4,5), (3,6), (2,6), (1,6), (2,5), (2,4), (2,3), (3,4), (1,6), (4,5), (4,5)];
xs = [1]
ys1 = [ys[0][0]]
ys2 = [ys[0][1]]
ys3 = [ys[0][0] + ys[0][1]]
i = 1
while i < len (ys):
xs.append (i)
ys1.append (ys [i][0])
ys2.append (ys [i][1])
ys3.append (ys [i][0] + ys [i][1])
i = i + 1
x = np.array(xs)
y1 = np.array(ys1)
y2 = np.array(ys2)
y3 = np.array(ys3)
plt.scatter(x, y3)
plt.show()
plt.plot(x, y1)
plt.plot(x, y2)
plt.plot(x, y3)
plt.show()
plt.plot(x, y3)
plt.show()
i = 0
z = [0]
i = 1
while i <= 12:
z.append (0)
i = i + 1
i = 1
while i <= 6:
j = 1
while j <= 6:
z [i+j] = z [i+j] + 1
j = j + 1
i = i + 1
print (z)
i = 0
while i < len (ys):
xs.append (i)
ys1.append (ys [i][0])
ys2.append (ys [i][1])
ys3.append (ys [i][0] + ys [i][1])
i = i + 1