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

fix: [TV] add last move highlights #1040

Merged
merged 4 commits into from
Sep 24, 2024
Merged

Conversation

sid0-0
Copy link

@sid0-0 sid0-0 commented Sep 19, 2024

Fixes #1026
feat: add last move highlights in TV

Created and passed GameData to display last move highlights and checks.


final gameAtCursor = game.positionAt(gameState.stepCursor);

final gameDataAtCursor = GameData(
Copy link
Contributor

Choose a reason for hiding this comment

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

The GameData was meant only for boards that are playable.

For now we can only display the lastMove which is already a great improvement. We'll only be missing the king check highlight which is not a big deal. I'll figure out what we can do with the chessground API later, to improve that.

Copy link
Author

Choose a reason for hiding this comment

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

updated

@sid0-0 sid0-0 changed the title fix: [TV] add last move and check highlights in TV fix: [TV] add last move highlights in TV Sep 23, 2024
@sid0-0 sid0-0 changed the title fix: [TV] add last move highlights in TV fix: [TV] add last move highlights Sep 23, 2024
@veloce veloce merged commit 443f77d into lichess-org:main Sep 24, 2024
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.

Lichess TV games don't display board highlights
2 participants