False End-of-Game logic in AisleRiot Spider
Submitted by bwa..@..il.net
Assigned to Ian Peters
Description
Package: gnome-games Version: ? (AisleRiot 1.0.51)
The logic that checks for valid moves has an issue in the Spider variation. It seemingly ignores cards that are of differing suits, but validly sequential. These cards may be valid for play, but the program overlooks them, which can trigger a false 'End of Game'.
I believe the logic to detect EOG is the same one used for hints, which provides a possible explanation for this behavior. As it usually makes little sense to suggest moving a card from a "valid" location to another, it may simply ignore the suit change, and check to see if the high end of the sequence can be moved, which fails. This would prevent an infinite loop in card movement, but can lead to a false termination of game play.
This is all rather confusing - so an example.
8H XX XX XX ... 7D XX XX XX ... XX 9H KH ... 9S 8D QH ...
Given the above partial distribution of cards, the 7 of diamonds can be played on the 8 of diamonds, allowing the 8 of hearts to be played on the 9 of spades. (Or the 8 of diamonds could be moved to the 9 of spades, allowing the 8 of hearts to be played on the like 9.) This would open up a stack to allow further game. Currently, neither of those moves are detected, and barring any other valid move, the game is ended.
-- Bryan C. Warnock (bwarnock@gtemail.net)
------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 16:33 ------- This bug was previously known as bug 22575 at http://bugs.gnome.org/ http://bugs.gnome.org/show_bug.cgi?id=22575 Originally filed under the gnome-games product and general component.
Unknown version 1.0.x in product gnome-games. Setting version to the default, "unspecified". The original reporter (bwarnock@gtemail.net) of this bug does not have an account here. Reassigning to the exporter, debbugs-export@bugzilla.gnome.org. Reassigning to the default owner of the component, bugmeister@canvas.gnome.org.
Resolution: RESOLVED FIXED