Skip to content

Conversation

@rhowel33
Copy link

@rhowel33 rhowel33 commented Nov 6, 2025

Update king mobility function in premove validation to only allow the user's preferred castling method. This matches the fix in chessground and ensures premoves work correctly with both castling preferences.

For issue: #18586
Depends on: lichess-org/chessground#366

  Update king mobility function in premove validation to only allow
  the user's preferred castling method. This matches the fix in
  chessground and ensures premoves work correctly with both castling
  preferences.

  Depends on: lichess-org/chessground#[PR-number-from-step-1]
@johndoknjas
Copy link
Contributor

@rhowel33 Thanks - funny coincidence, I was just about to start work on this haha. For chessground we won't need to match, since we've been moving the logic there over to lila. After #365, cg's premove functionality will be back to its minimalistic state from June-July.

Since we're trying to trim down MobilityContext as well, here in lila you could add a field for rookCastle once the class from #18565 is available.

@rhowel33
Copy link
Author

rhowel33 commented Nov 6, 2025

Gotcha, I will take a look at #18565 and see what changes need to be made. I'll also close the chess ground pr.

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.

3 participants