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

Checkmate and Pawn Promotion UI #320

Open
fraggle222 opened this issue Feb 19, 2025 · 1 comment
Open

Checkmate and Pawn Promotion UI #320

fraggle222 opened this issue Feb 19, 2025 · 1 comment

Comments

@fraggle222
Copy link

Would this project welcome contributions to add checkmate and pawn promotion UI to the library? It seems these are missing but essential features that anyone using chessground has to find alternate implementations for. Is there a technical (or philosophical) reason not to add these?

@fraggle222
Copy link
Author

I guess checkmate UI is easily enough handled using existing chessground setShapes or setAutoShapes : board.setAutoShapes([
{
orig: square,
label: {
text: '#'
}
}
]);
This gives effect similar to what lichess has.

But pawn promotion UI, at least on lichess seems to be handled outside of chessground in separate div overlays that get added. This is probably the main thing 'missing' from chessground that people need to figure out from UI perspective.

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

No branches or pull requests

1 participant