X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=sudoku.py;h=666110e2f89c51f6f2f1eb7a9bbd3acd7e00d5ee;hb=1c7ce90cac407f5196f07d3b63bcc6c4b102efc4;hp=c893bce8699fcb06c222de4920950b2f33e2f19c;hpb=bf9d28609ea65fd320add7e2af4ff941dd5781e7;p=sudoku.git diff --git a/sudoku.py b/sudoku.py index c893bce..666110e 100755 --- a/sudoku.py +++ b/sudoku.py @@ -44,6 +44,8 @@ class Grid(object): """Affiche la valeur de la profondeur d'hypothèse si on n'a jamais atteint ce niveau""" global DEPTH if self.depth > DEPTH: + # On affiche l'état avant de faire l'hypothèse + print self print "Profondeur : %s" % self.depth DEPTH += 1 @@ -209,4 +211,3 @@ if __name__ == "__main__": raw_input("\ngo ?") g.solve() print g -