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

Promotion fix #25

Merged
merged 2 commits into from
Jul 28, 2023
Merged

Promotion fix #25

merged 2 commits into from
Jul 28, 2023

Conversation

nav-28
Copy link
Contributor

@nav-28 nav-28 commented Jul 28, 2023

Fixes lichess-org/mobile#245

Also added a free play mode to the example app. It make easier for testing and debugging.

@@ -349,6 +349,7 @@ class _BoardState extends State<Board> {
}
if (oldBoard.data.sideToMove != widget.data.sideToMove) {
_premoveDests = null;
_promotionMove = null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the only needed fix.

@veloce veloce merged commit 81b8b0a into lichess-org:main Jul 28, 2023
1 check passed
@nav-28 nav-28 deleted the promotion_fix branch July 30, 2023 18:37
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.

Bug when promoting
2 participants