Skip to content

Fix show solution giving wrong answer in puzzle#2972

Merged
veloce merged 1 commit into
lichess-org:mainfrom
HaonRekcef:puzzleFix
Apr 13, 2026
Merged

Fix show solution giving wrong answer in puzzle#2972
veloce merged 1 commit into
lichess-org:mainfrom
HaonRekcef:puzzleFix

Conversation

@HaonRekcef

@HaonRekcef HaonRekcef commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

The problem was that castling moves from the solution string were converted into Move objects without being normalized.
This would lead to a different Move object being created compared to when a user plays the move manually and then the solution would not be played.

Includes a test that fails before and passes now.
Puzzle to test it on:
https://lichess.org/training/9gsMd

Fixes #2876

@veloce veloce changed the title fix #2876 Fix show solution giving wrong answer in puzzle Apr 13, 2026

@veloce veloce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@veloce veloce merged commit 8b59df5 into lichess-org:main Apr 13, 2026
1 check 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.

Show Solution giving wrong answer In Todays Daily Puzzle

2 participants