[Pythonsudoku-devel] Hangs on startup
Brought to you by:
xoseotero
From: <xos...@gm...> - 2006-05-13 06:35:40
|
O Venres 12 Maio 2006 20:44, Olivier Croquette escribiu: > I have a strange behaviour under MacOS X. > PySu (I hope you allow me this nick name :) sometimes hangs on startup. > I will try to investigate! I prefer PySDK :p I thing that the hangs are produced by Sudoku::fix() function. The algol for create a sudoku is mainly a brute force one. Sudoku::fix() should fix the board when a incorrect number is added, but sometimes it can't. I've tried some variants of this function (the actual is a very stupid one) but I haven't found a good one. A possibility is don't use this function and if a impossible board is found, restart the creation since the begining. Python Sudoku did that in the firsts versions. A propper Sudoku::fix() is fattest, but the actual one hangs the program. |