GNU bug report logs - #36867
26.2; gamegrid-add-scrore miss lower-is-better flag

Previous Next

Package: emacs;

Reported by: Rolf Ade <rolf <at> pointsman.de>

Date: Wed, 31 Jul 2019 00:14:01 UTC

Severity: wishlist

Found in version 26.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Federico Tedin <federicotedin <at> gmail.com>
To: Rolf Ade <rolf <at> pointsman.de>
Cc: 36867 <at> debbugs.gnu.org
Subject: bug#36867: 26.2; gamegrid-add-scrore miss lower-is-better flag
Date: Wed, 04 Sep 2019 00:29:22 +0200
[Message part 1 (text/plain, inline)]
Rolf Ade <rolf <at> pointsman.de> writes:

> The function gamegrid-add-scrore is handy for games developer; they get
> a high-score management system with one call. That includes a threshold
> for the number of entries in the high-score file.
>
> A consequence of that is, that an entry has be removed from the list if
> a new, better one must be inserted. In this situation,
> gamegrid-add-scrore currently always removes the "lowest" result.
>
> This is good and well for "more is better" games. But is wrong for
> "faster is better" games. An example:
> https://github.com/calancha/Minesweeper
>
> This feature omission is on lisp level. The in the emacs sources
> included tool update-game-score (which is used by gamegrid, if it is
> available) support reverse opperation.

I've added a new 'reverse' parameter to gamegrid-add-score that allows
switching between storing the scores normally, or in reverse order. As
Rolf mentioned, this feature was already implemented in
update-game-score. I'm attaching a patch with my changes.

- Fede

[gamegrid.patch (text/x-diff, attachment)]

This bug report was last modified 5 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.