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

feat: a to san function #81

Open
samyosm opened this issue May 12, 2023 · 2 comments
Open

feat: a to san function #81

samyosm opened this issue May 12, 2023 · 2 comments

Comments

@samyosm
Copy link

samyosm commented May 12, 2023

I would love a function that would transform a ChessMove into a SAN notation instead of the currently available LAN notation. E.g. a3 instead of a2a3 in the default position.

@xd009642
Copy link

xd009642 commented Aug 8, 2023

Ditto, I came to the repo to make this suggestion as well (also happy to help out via a PR)

@yzoug
Copy link

yzoug commented Feb 17, 2024

Hello, this is a duplicate of #69.

I actually submitted a PR and it works well, I've been using it for my project with no issue: #71 .

@jordanbray is not actively maintaining this crate. It's a shame, because I like the way it's thought out. The name chess is also, I think, a big advantage.

If you want to use this, I maintain my fork with the mentioned PR included: https://github.com/yzoug/chess. If you use my fork the Game struct can be obtained as a PGN (i.e. SAN notation, think "1. e4 e5 2. Nf3 Ng6...") with .to_string() (it implements the Display trait).

I also think we should probably fork this under a new name and gather motivated people to maintain it. I'm a not a good Rust dev so I don't think I can assume this role, but would be happy to help.

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

3 participants