Disservin / chess-library

C++ chess library
https://disservin.github.io/chess-library/
MIT License
71 stars 22 forks source link

Optionally do not output the move counter for getFen #34

Closed vondele closed 10 months ago

vondele commented 10 months ago

sometimes it is useful to have just the position, and not movecounter information.

Incidentally, it appears setFen is not taking move counter information from the fen, at least on first reading. This could be an issue, if not by design.

Disservin commented 10 months ago

sometimes it is useful to have just the position, and not movecounter information.

Incidentally, it appears setFen is not taking move counter information from the fen, at least on first reading. This could be an issue, if not by design.

Are you sure? There is this this test, which should cover this. https://github.com/Disservin/chess-library/blob/master/tests/board.cpp#L66C1-L67C83

vondele commented 10 months ago

Are you sure? There is this this test, which should cover this. https://github.com/Disservin/chess-library/blob/master/tests/board.cpp#L66C1-L67C83

No, misread the code, this is done at the beginning of the routine, not the end... thanks!