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

Position getters: HalfMoveClock() and EnPassantSquare() #103

Merged
merged 1 commit into from
Aug 8, 2022

Conversation

bbars
Copy link
Contributor

@bbars bbars commented Jul 9, 2022

Discover two Position getters: HalfMoveClock() int and EnPassantSquare() Square

@bbars
Copy link
Contributor Author

bbars commented Jul 9, 2022

I'm working on a Fathom wrapper for Go. It is a tool that allows you probing WDL, DTZ and much more using Syzygy (Nalimov) tablebases. I use this chess package as a type library to comunicate with internal code from the outside. It would be nice to know everything about a state (Position). But getters of those two private properties are missing: Position.enPassantSquare and Position.halfMoveClock

@notnil notnil merged commit 6e59700 into notnil:master Aug 8, 2022
@notnil
Copy link
Owner

notnil commented Aug 8, 2022

These were overlooked.

@bbars bbars deleted the position-getters branch August 12, 2022 13:17
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.

2 participants