Skip to content

Conversation

@johndoknjas
Copy link
Contributor

Currently if the user performs a castle by dragging the king onto rook, the last move highlights will be on the king and rook's former squares. But if the user drags the king two squares, it'll be the king's former and new square.

This PR makes it so that for the standard castle (king on e1, rook in corner), the highlights are always e1/g1 or e1/c1. Also contains unrelated tiny cleanups done in other parts of the file.

@ornicar ornicar merged commit 30df77d into lichess-org:master Nov 17, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants