Procházet zdrojové kódy

kleinere Veränderungen vorgenommen

ateubert %!s(int64=7) %!d(string=před) roky
rodič
revize
fabfa0c6e8
1 změnil soubory, kde provedl 5 přidání a 4 odebrání
  1. 5 4
      maze_fertig.py

+ 5 - 4
maze_fertig.py

1
 #!/usr/bin/env python
1
 #!/usr/bin/env python
2
 # -*- coding: utf-8 -*-
2
 # -*- coding: utf-8 -*-
3
 
3
 
4
+
5
+#letzte Aktualisierung 25.07.2017
4
 #erstellt von Alexander Teubert und Michelle Piras /MT2016
6
 #erstellt von Alexander Teubert und Michelle Piras /MT2016
5
 
7
 
6
 #MAZE GAME
8
 #MAZE GAME
79
         self.check_status()
81
         self.check_status()
80
 
82
 
81
 
83
 
82
-#UEBERPRUEFUNG DER KOORDINATEN
83
-    def check_move(self, x, y):
84
+#UEBERPRUEFUNG DER KOORDINATEN								#ueberpruefen der Koordinaten wichtig fuer das "Backtracking"
85
+    def check_move(self, x, y):								#damit die Anzahl der Schritte wiedergegeben werden kann
84
         x0, y0 = self.get_cell_coords()
86
         x0, y0 = self.get_cell_coords()
85
         x1 = x0 + x
87
         x1 = x0 + x
86
         y1 = y0 + y
88
         y1 = y0 + y
111
 #GENERIERUNG DES LABYRINTHS
113
 #GENERIERUNG DES LABYRINTHS
112
 class Maze(object):
114
 class Maze(object):
113
 
115
 
114
-    def __init__(self, width=21, height=21, exit_cell=(19,1), start_cell=(1,19)):	#Initierung des Rahmens des Maze, sowie Start und Ziel Festlegung
116
+    def __init__(self, width=21, height=21, exit_cell=(19,1)):	#Initierung des Rahmens des Maze, sowie Start und Ziel Festlegung
115
         self.width = width
117
         self.width = width
116
         self.height = height
118
         self.height = height
117
         self.exit_cell = exit_cell
119
         self.exit_cell = exit_cell
118
-	self.start_cell = start_cell
119
         self.create()
120
         self.create()
120
 
121
 
121
     def create(self):
122
     def create(self):