niklasf / chessops

Chess and chess variant rules and operations in TypeScript
https://niklasf.github.io/chessops/
GNU General Public License v3.0
119 stars 35 forks source link

Add cutechess-style comments support #175

Closed franciscoBSalgueiro closed 9 months ago

franciscoBSalgueiro commented 9 months ago

I've included additional tests, based on output from cutechess and fast-chess.

niklasf commented 9 months ago

Thanks!

dav1312 commented 9 months ago

Does this take into account that the evaluations have the POV of the player?

45. Ke3 {-4.97/22 2.0s} Ra8 {+5.15/25 2.8s} 46. Re2 {-5.09/20 0.85s}
niklasf commented 8 months ago

Good point. It appears not, but [%eval ...] does. So they are fundamentally incompatible, unless the current turn is provided for context.