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

add some key features #4

Open
bendathierrycom opened this issue May 23, 2012 · 0 comments
Open

add some key features #4

bendathierrycom opened this issue May 23, 2012 · 0 comments

Comments

@bendathierrycom
Copy link

Hello,

Maybe it could be great if your plugin will have some standard features of other pgn players:

  • variants support
  • button binding to start of the game
  • button binding to end of the game

For variant support, you could do as you want.
For start/end buttons binding, maybe adding some logic when you parse the pgn data to extract fen end chessboard position and store it.

Going through something like below works but is not really efficient:
[code]
$('.end', container).click(function() {
while(chess.game.halfmove_number < chess.game.transitions.length) {
chess.transitionForward();
}
$('.annot', container).text( chess.annotation() );
return false;
});
[/code]

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