23.9.2026
This commit is contained in:
+14
-16
@@ -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
|
||||
Reference in New Issue
Block a user