ich bin noch ein absoluter Anfänger. Hab mit Python erst vor ein paar Wochen angefangen und hoffe wie immer eine schnelle gute Antwort von euch zu bekommen. Möchte es auch gerne mal ansprechen das ich es total super finde wie Ihr euch mühe gibt anderen zu Helfen!!!

Mein Problem ist das ich ein Code nicht verstehe den ich aus dem Internet habe...
Code: Alles auswählen
#Create Level setup Function
def setup_maze(level):
for y in range(len(level)):
for x in range(len(level[y])):
#Get the charecter at each x,y coordinate
#Note the order of y and x in the next line
charecter = level[y][x]
#Calculate the screen x, y cooednites
screen_x = -288 + (x*24)
screen_y = 288 - (y*24)
#Check if it is an X (representing a wall)
if charecter == "X":
pen.goto(screen_x, screen_y)
pen.stamp()
Vielen Dank im Voraus !
Mit freundlichen Grüßen,
Jon