Add ability to play/load/save/share existing games
Submitted by Todd Wilson
Link to original bug (#602655)
Description
The current version of gnome-sudoku does not have the ability to play a game that is entered by the user, e.g., a game out of the newspaper or a book-collection of puzzles. Ideally, there would be two ways of entering an existing game:
-
A menu entry for "Enter Game", that would bring up an empty grid and allow users to add, remove, or change numbers, with a "Finish" or "Submit" button that would add the entered game to a new "Entered Games" section (along with the "New Game" and "Saved Games" sections).
-
A menu entry for "Load Game from File" that would bring up a file dialog to allow users to select a file, which would contain one or more Sudoku games in some plain-text format, say 9 lines of 9 characters each ('1' .. '9', plus '.' for an empty square), with blank lines between games. All games loaded from the file would be added to the "Entered Games" section.
The file format mentioned in 2 would also allow games to be shared among Sudoku uses, stored in annotated repositories (e.g., "Todd's Top Ten"), etc. To facilitate this, a way to export specific puzzles or generated puzzles to a file would also be useful. As an example of the successful use of such file formats, the developers might want to look at the KSokoban game:
http://hem.passagen.se/awl/ksokoban/
Thanks!
Version: git master