Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Castling Issue #84

Open
PraseodymiumSpike opened this issue Jan 16, 2025 · 1 comment
Open

Castling Issue #84

PraseodymiumSpike opened this issue Jan 16, 2025 · 1 comment

Comments

@PraseodymiumSpike
Copy link

Current Board FEN: **r2k3r/**p1pbpp2/**qp1p3b/2n5p1/5SS1nS/**1S1W1S2/**1S1SHWES/**2EFFK2/**1O4O1 b kq - 2 18
In the image above, attempting to castle on the j-side as black does not result in castling but instead just moves the king to g9 without moving the rook at all. This bug seems to occur when dragging the king onto the rook on j9 or by selecting "f9j9 (O-O)" from the "moves dialog" dropdown menu.

The "accurate" variant in this configuration is being used:

[birdbrawl:chess]
maxRank = 9
customPiece1 = h:NAD
customPiece2 = e:mQcZ
customPiece3 = f:mQcC
customPiece4 = o:mR2cAcG
customPiece5 = w:mB2cDcH
customPiece6 = s:fmFfcWifmA
enPassantRegion = -
pawnTypes = ps
promotionPieceTypesBlack = hefow
promotionRegionWhite = *9
startFen = wo2h1ow/e2ff2e/ssssssss/4k3/8/8/8/PPPPPPPP/RNBQKBNR w KQ - 0 1

[birdbrawlwhite:birdbrawl]
startFen = rnbqkbnr/pppppppp/8/8/8/4K3/SSSSSSSS/E2FF2E/WO2H1OW w kq - 0 1
promotionPieceTypesBlack = nbrq
promotionPieceTypesWhite = hefow

[accurate:birdbrawlwhite]
maxFile = 10
startFen = **rnbkqbnr/**pppppppp/**8/10/10/**4K3/**SSSSSSSS/**E2FF2E/**WO2H1OW w kq - 0 1
perpetualCheckIllegal = true

[new:birdbrawl]
customPiece1 = h:KNAD

The moves so far are these:
g3h4 f8f7 g4g3 g9d6 e3f4 i9h7 g3h2 i8i7 j1i2 d9e7 g1g3 j8j7 c2e2 j7j6 h3g4 d8d7 g4f5 e7c6 i2g4 i7i6 c3d4 j6j5 i3j4 d6h6 j4j5 e9f8 g4h3 h6d6 j2i3 d6c7 c1d2 h9j7 f4g5 h7i5 d2f4

@ianfab
Copy link
Owner

ianfab commented Jan 17, 2025

When the king only moves only one square during castling there can be some problems with ambiguity in move notation. So in that case adding chess960 = true can help to avoid that.

If you want to change the target location after castling, you can use castlingKingsideFile, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants