This commit is contained in:
alstergym
2026-09-22 12:12:54 +02:00
parent 3faa07ac2c
commit 42fa07b691
4 changed files with 5 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.
+5 -1
View File
@@ -2,7 +2,7 @@ import copy
import pygame import pygame
class MeinSpiel: class MeinSpiel:
bilder = ["Bilder/Schach.jpg","Bilder/stern.jpg"] bilder = ["Bilder/Schach.jpg","Bilder/stern.jpg","Bilder/sterncopy.jpg"]
spielfeld = [] spielfeld = []
def __init__(self, felderX, felderY): def __init__(self, felderX, felderY):
@@ -14,8 +14,12 @@ class MeinSpiel:
def anfangsKonfiguration(self): def anfangsKonfiguration(self):
self.spielfeld[5][5] = 0 self.spielfeld[5][5] = 0
self.spielfeld[6][2] = 1 self.spielfeld[6][2] = 1
self.spielfeld[9][7] = 1
def tasteGedrueckt(self, taste): def tasteGedrueckt(self, taste):
print("taste gedrückt") print("taste gedrückt")
# Von 0 bis 10 in Schritten von 2
for i in range(0, 11, 5):
print(i)