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

Move's algebraic notation #9

Open
inmylo opened this issue Nov 19, 2016 · 1 comment
Open

Move's algebraic notation #9

inmylo opened this issue Nov 19, 2016 · 1 comment

Comments

@inmylo
Copy link

inmylo commented Nov 19, 2016

Hi,

I'm trying to use your library, but at the moment I can't find a way to get a move's algebraic notation. For example, if a rook takes another peace - I pass to your library the string g5g6, but then I want to be able to get a string Rxg6. Something like move.San() which returns SAN formatted string. Is it possible?

If not, could you please implement this function? If it's too difficult - how else I can achieve this?

@hauva69
Copy link
Contributor

hauva69 commented Nov 18, 2017

Depending on what you need, you might pipe your output to pgn-extract. That's what I do with my own silly little tool, which get's my games from lichess. It knows nothing about chess, it just uses the JSON it gets from the API.

Of course, it's not a real solution, but in some cases, like in mine, it can be bearable workaround.

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

2 participants