#788884 gnome-tetravex: Game can win itself

Package:
gnome-tetravex
Source:
gnome-tetravex
Description:
put tiles on a board and match their edges together
Submitter:
Rebekah Yoder
Date:
2019-10-07 12:30:06 UTC
Severity:
normal
#788884#5
Date:
2015-06-15 21:21:56 UTC
From:
To:
Dear Maintainer,

Twice I have started a new game and had it automatically win. Once
was under the 3x3 configuration, the other under 2x2 (which is the
easiest way to replicate it, although as the bug depends heavily on
chance it may take a while to have it happen).

In this case it very briefly flashes the game board, in which all
the tiles are still on the right side, and then declares the game
won with a time score of 0:00.

I haven't been able to figure out what causes this bug, as I've
been through the source and it looks like to win you need to have
all the tiles on the left side of the board. I even tried "winning"
by placing the tiles correctly on the right side of the board once,
but apparently if the user places them there it doesn't declare the
game won.

I'm working on finding the problem and making a patch, but since
I'm a newbie to open source and programs longer than the crummy
toy problems they give me in class, it may take me a while.

#788884#10
Date:
2019-10-07 12:27:21 UTC
From:
To:
Hi, I’m the (new) upstream maintainer of this application.

I’m a bit surprised by the exact behavior you describe, but anyway,
there was clearly some problems, with the game generating solved
puzzles notably. ^^ So I’ve immediately started to hack a bit on it,
fix some small things here and there, and do some small improvements.
Related to this bug report:
 * the game does not generate solved puzzles anymore (or it’s a bug :·D);
 * when the game is solved on the right (per previous point, by the
player), an arrow appears to move all tiles to the left, and game is
said solved if the player presses this arrow.

The “flash” that has is described looks like something that always
exists in the “master” development branch, but if it’s the same thing,
I consider it is a deeper bug (Gtk+, probably); a not-updated cache
image of the (previous game) board is loaded when the dialog pops up.
Hopefully, I’m working on a workflow of the game that avoids showing
the dialog[1], and so where the bug is solved; if I’m not hit by a
bus, it will be pushed before the next stable 3.36 release.

[1] https://gitlab.gnome.org/GNOME/gnome-tetravex/issues/3#note_610513

Thanks for the issue report, I hope the 3.36 release (coming in March
2020) will satisfy yourself. :·)