23.9.2026

This commit is contained in:
alstergym
2026-09-23 11:02:41 +02:00
parent 3e94952dd5
commit 3cb8a0be0a
6 changed files with 24 additions and 33 deletions
+14 -16
View File
@@ -1,6 +1,6 @@
import copy
import pygame
import random
import copy
class MeinSpiel:
@@ -14,9 +14,8 @@ class MeinSpiel:
self.spielfeld[x].append(2)
def anfangsKonfiguration(self):
self.spielfeld[1][1] = 0
self.spielfeld[6][6] = 3
self.spielfeld[6][7] = 1
self.spielfeld[0][13]=0
def tasteGedrueckt(self, taste):
@@ -63,15 +62,14 @@ class MeinSpiel:
self.spielfeld = kontrollfeld
#def tasteGedrueckt(self, taste):
#if pygame.K_d == taste:
#for x in range(len(self.spielfeld)):
#for y in range(len(self.spielfeld)):
#if self.spielfeld[x][y] == 0:
# self.spielfeld[x + 1][y] = 0
# self.spielfeld[x][y] = 2
#def anfangsKonfiguration(self):
# self.spielfeld[1][13] = 0
# for i in range(3):
# x = random.randint(0, len(self.spielfeld) - 1)
# y = random.randint(0, len(self.spielfeld) - 1)
#
# while self.spielfeld[x][y] != 0:
# x = random.randint(0, len(self.spielfeld) - 1)
# y = random.randint(0, len(self.spielfeld) - 1)
#
# self.spielfeld[x][y] = 1