Ich habe mit tkinter und canvas ein Mosaik das gezeichnet wird am Ende.
Anfangsaufspannung:
Code: Alles auswählen
for row in range(s):
		for col in range(s):
			# calculates the coordinates of the current stone
			x1 = stone_size * row
			y1 = stone_size * col
			x2 = x1 + stone_size
			y2 = y1 + stone_size
			# gets the color of the current stone
			color = decide_color(row, col, s)
			# paints the current stone on the given position
			graphic.create_rectangle(x1, y1, x2, y2, fill = color, outline="")(Ich möchte keinen Code da ich es ja lernen möchte, ich hoffe nur auf einen kleinen Tipp, da ich schon vieles nachgeschaut hab aber noch nichts gefunden habe das mich weiterbringt)
MfG
ToaD


 Und für das, was einen Stein ausmacht, wird es etwas analoges auch für Kreise geben - denke ich mal. (Unter pygame gibt es
 Und für das, was einen Stein ausmacht, wird es etwas analoges auch für Kreise geben - denke ich mal. (Unter pygame gibt es 


