Add option to clear high scores

Bug #248352 reported by Jantien
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Games
Expired
Wishlist
gnome-games (Ubuntu)
Triaged
Wishlist
Ubuntu Desktop Bugs

Bug Description

Who can help me to reset the highscore in Mahjongg?

Please add the ability to clear high scores in Gnome Games like Mahjongg and
Mines.

Jeremy Bícha (jbicha)
description: updated
Changed in gnome-games:
status: Unknown → New
Changed in gnome-games:
assignee: nobody → desktop-bugs
importance: Undecided → Wishlist
status: Confirmed → Triaged
Revision history for this message
Trygve Vea (trygve-vea-gmail) wrote :

I'd argue that this isn't a bug, but a question.

This can be done by truncating the files located in /var/games.
These files are only writable by root and the games group.

You can reset the highscore in Mahjongg by running the following two commands in a terminal:

sudo su
for a in `ls /var/games/mahjongg.*`; do cat /dev/null > $a; done

The reason why this is done the way it is, is to make it possible for users to share the highscore-table without making it obviously easy to cheat. Implementing what you ask from within a game is most likely never to happen, since that would break this feature.

Regards, Trygve

Revision history for this message
KevinM (kevbert1) wrote :

Surely this should be implemented as bug #400931 gave negative scores which are still shown after the update of gnome-games to 2.27.5 (see attachment).

Revision history for this message
Hale M Jones (selahltd) wrote :

You can modify the scores of mahjongg by opening a terminal,
Applications>Accessories>terminal
then typing
ls /var/games/mahjongg.*
and a list of files like
/var/games/mahjongg.easy.scores
will appear. Choose the file named for the level of mahjongg you want to modify. The you type
sudo gedit /var/games/mahjongg.easy.scores
(In this example the level is "easy")
and delete the scores you dont want then save the file.
Choose the file named for the level of mahjongg you want to modify.
Have a good day!
HMJ

Revision history for this message
Hale M Jones (selahltd) wrote :

A feature that would be nice is to ALWAYS display your score at bottom of list. As the game is now, after 10 games, you cant see your score unless it is better than the 10th one.
HAve a good day!
HMJ

Changed in gnome-games:
importance: Unknown → Wishlist
Changed in gnome-games:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.