notnil / chess

chess package for go
MIT License
515 stars 128 forks source link

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

Closed bbars closed 2 years ago

bbars commented 2 years ago

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

bbars commented 2 years ago

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 commented 2 years ago

These were overlooked.