if __name__ == "__main__":
basic = sudoku_types.BasicSudoku()
samurai = sudoku_types.Samurai()
+ #samurai.debug(True)
#values = [i for i in sudoku_types.examples.hard]
#values = [i for i in "0"*369]
values = quick_input()
field = self.linked_fields[field]
values = [rouge + "X" + rien if i in field else "_" for i in range(self.size)]
return self.render(values, False)
+
+ def debug(self, pause=False):
+ """Affiche successivement tous les linked_fields"""
+ for f in self.linked_fields:
+ print self.render_field(f)
+ if pause:
+ raw_input(u"…".encode("utf-8"))
class BasicSudoku(SudokuType):
size = 81