2 Коммиты 5cd0c2acb7 ... fee0e0542c

Автор SHA1 Сообщение Дата
  ateubert fee0e0542c Merge branch 'master' of http://es-lab.de:60080/ateubert/Labventure лет назад: 7
  ateubert fabfa0c6e8 kleinere Veränderungen vorgenommen лет назад: 7
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      maze_fertig.py

+ 5 - 4
maze_fertig.py

@@ -1,6 +1,8 @@
1 1
 #!/usr/bin/env python
2 2
 # -*- coding: utf-8 -*-
3 3
 
4
+
5
+#letzte Aktualisierung 25.07.2017
4 6
 #erstellt von Alexander Teubert und Michelle Piras /MT2016
5 7
 
6 8
 #MAZE GAME
@@ -79,8 +81,8 @@ class Application(tk.Frame):
79 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 86
         x0, y0 = self.get_cell_coords()
85 87
         x1 = x0 + x
86 88
         y1 = y0 + y
@@ -111,11 +113,10 @@ class Application(tk.Frame):
111 113
 #GENERIERUNG DES LABYRINTHS
112 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 117
         self.width = width
116 118
         self.height = height
117 119
         self.exit_cell = exit_cell
118
-	self.start_cell = start_cell
119 120
         self.create()
120 121
 
121 122
     def create(self):