← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #76097]: to reset scores?

 

Question #76097 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/76097

    Status: Open => Answered

midnightflash proposed the following answer:
Quote from: http://www.mail-archive.com/desktop-bugs@xxxxxxxxxxxxxxxx/msg215807.html
-------------
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.
-------------

Greetings

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.