Skip to content

Conversation

@jogendra05
Copy link
Contributor

@jogendra05 jogendra05 commented May 23, 2025

Issue #17310

In the Board Editor, when the "Clear Board" and "Starting Position" button was clicked, the player to move would unexpectedly change to "White to play," even if the user had previously set the player to "Black to play."
Made the necessary changes

Closes #17310

modFen[1] = this.turn.split('')[0];

clearBoard = (): boolean => this.setFen(EMPTY_FEN);
return this.setFen(modFen.join(' '));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the start position should set white to play. Or it wouldn't quite be the start position.

@jogendra05 jogendra05 changed the title fix:"Clear Board" and "Starting position" button no longer changes player to "white to play" (closes #17310) fix:"Clear Board" button no longer changes player to "white to play" (closes #17310) May 25, 2025
@ornicar ornicar merged commit 0f40da0 into lichess-org:master May 26, 2025
3 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.

Bug/Unexpected behavior: Study board editor "Clear board" button changes player to "white to play"

2 participants