After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664948 - Add highscore support
Add highscore support
Product: gnome-sudoku
Classification: Applications
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-sudoku-maint
Depends on:
Reported: 2011-11-27 22:40 UTC by Robert Ancell
Modified: 2018-05-22 12:23 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Robert Ancell 2011-11-27 22:40:26 UTC
Add highscore support
Comment 1 Anup 2013-11-02 06:00:58 UTC

I am interested in fixing this bug. So please can you assign this bug to me?

Thanks in Advance,

A. Anup.
Comment 2 Michael Catanzaro 2013-11-07 19:00:52 UTC
Hi Anup, sure thing, thanks for working on this.  Please be aware that we've been porting Sudoku from Python to Vala, so the branch to be looking at is vala-port, not master.  There's Vala code for high score support in several of the Vala games (Mahjongg, Mines, Quadrapassel, ...) so you can copy from any of those to get started.
Comment 3 Anup 2013-11-08 13:48:34 UTC
Hi Michael, can you please tell me where can we find the code for the high scores or can you please provide me the link for that code?
Comment 4 Michael Catanzaro 2013-11-09 03:32:17 UTC
Let's look at Mines. Towards the bottom of gnome-mines.vala you'll find a class ScoresDialog [1]. There's also the History and HistoryEntry classes in history.vala [2].  You can find all the other score-related code just by searching in gnome-mines.vala for "score."


Scores are saved in ~/.local/share/gnome-mines/history.

For Sudoku, I think your score will just be how long it takes to solve the puzzle, unless you have a better idea or there's a traditional scoring system. (I'm honestly not very familiar with the game.) There should be separate scores for each difficulty of puzzle, just like Mines has separate scores for different board sizes.

Don't hesitate to ask questions here or via email if you run into trouble. Thanks!
Comment 5 Michael Catanzaro 2014-06-29 18:30:17 UTC
We're working on a new scores library and we probably want to use it in Sudoku to track best times, but this is not a priority for 3.14.
Comment 6 GNOME Infrastructure Team 2018-05-22 12:23:31 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: