GNOME Bugzilla – Bug 462754
Sudoku does not "remember" any generated puzzles
Last modified: 2008-04-07 00:53:14 UTC
Please describe the problem: Every time I open gnome-sudoku, I receive the same puzzle (number 62 on my system, level 0.68), which I played at-least 5 times. This is the hardest puzzle on my system, and that is the reason it opens each time. However, I generated 75 (!) new puzzles, all Hard and Very Hard. I even played puzzle 62 to erase it from the lists, and then played one of the new 75 to make sure it exists. Everything fine, but then... I close gnome-sudoku, and the next time I open it, I get puzzle 62 again, and no harder puzzles appear on the list. I did this 3 times, each time I generated a different number of new puzzles (12, 50 and 75) to make sure this isn't caused by me (creating to many or to little puzzles and so on). Steps to reproduce: 1. Open Sudoku. 2. Generate new puzzles. 3. Exit Sudoku. 4. Re-open Sudoku. Actual results: The new puzzles disappear. Expected results: The new puzzles should appear, and the puzzles I already played should be erased. Does this happen every time? Yes. Other information:
What is your exact version of gnome-sudoku?
(In reply to comment #1) > What is your exact version of gnome-sudoku? > 2.18.2.1 Thanks again =).
I have Gnome-games 2.18.2.1 on Fedora 7 and 2.20.0.1-1.FC8 on Fedora 8. Both do not save Sudoku generated games. Geneate games, exit sudoku, and reenter and gererated games are gone. Tried both as user and root. Same problem. This was run on several different PC's, ie. Hardware is not the problem.
I get this here on 2.20.0.1 too. (gutsy)
High scores also stuck at one of the games and are not saved any more. The game repeats offering the same puzzles over and over again since it does not remember that they had been solved. Tried deleting ~/.gnome2/gnome-sudoku Now the game offers puzzle 36 all the time and complains about loading puzzles instead of recreating the folder: Unable to load puzzles: <type 'exceptions.IOError'>: [Errno 2] No such file or directory: '~/.gnome2/gnome-sudoku/generated_puzzles'
Gnome-sudoku 2.20.2 under Debian Sid, same error. It does not remember generated puzzles, nor highscores, nor game being played. " Unable to load puzzles: <type 'exceptions.IOError'>: [Errno 2] No such file or directory: '~/.gnome2/gnome-sudoku/generated_puzzles' " There was no ~/.gnome2/gnome-sudoku folder, but creating it did not change anything. Regards.
This should be fixed in the latest version. How generated puzzles are stored has been changed substantially, so this code would have been changed as a side effect. As far as I can tell, everything is working normally. It's possible the bug will recur if this was caused by not having permissions to write to the correct directory (~/.gnome2/gnome-sudoku/puzzles). If so, please reopen.