After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679078 - Castling with opposing bishop/knight
Castling with opposing bishop/knight
Status: RESOLVED FIXED
Product: gnome-games-superseded
Classification: Deprecated
Component: glchess
3.4.x
Other Linux
: Normal critical
: ---
Assigned To: GNOME Games maintainers
GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2012-06-28 18:33 UTC by marzojr
Modified: 2012-07-12 21:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Black king castling with white bishop, glChess 3.4.1 (157 bytes, application/x-chess-pgn)
2012-06-28 18:33 UTC, marzojr
Details

Description marzojr 2012-06-28 18:33:51 UTC
Created attachment 217557 [details]
Black king castling with white bishop, glChess 3.4.1

glChess 3.4.1 allows short and long castling with opposing bishops and knights.

Attached, is a PNG showing a sequence of movements played in the stated version that allows the black king to castle with the white bishop; note that the PGN ends with a 0-0 on black's side. A similar sequence allows castling with the white knight, and likewise for long castling, or for white king castling with black pieces. Castling with opposing rooks and queens is not possible in this scenario because they put the king in check; interestingly, the opposing king does not allow castling, long or short, in these circumstances.

The condition checks should probably make sure that capturing the rook disables castling as much as moving it.
Comment 1 Robert Ancell 2012-07-12 21:51:42 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

http://git.gnome.org/browse/gnome-games/commit/?id=a98e2e336cbb1f398264cb5bb3978e99b8acd4d1