Skip to content

Comments

fix promotion selection if player on top promotes#79

Merged
veloce merged 1 commit intolichess-org:mainfrom
HaonRekcef:fix-promotion-selection
Aug 5, 2025
Merged

fix promotion selection if player on top promotes#79
veloce merged 1 commit intolichess-org:mainfrom
HaonRekcef:fix-promotion-selection

Conversation

@HaonRekcef
Copy link
Contributor

fixes lichess-org/mobile#1286
Now the other of material is correct (queen on promotion square) even when the player on top promotes.
grafik

Also adds a test case that fails without the changes and passes with them.

Copy link
Collaborator

@veloce veloce left a comment

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 80a6ba1 into lichess-org:main Aug 5, 2025
1 check passed
@HaonRekcef HaonRekcef deleted the fix-promotion-selection branch August 5, 2025 14:20
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.

If the board is flipped, the order of the materials for promotion is not correct.

2 participants