lichess-org / api

Lichess API documentation and examples
https://lichess.org/api
GNU Affero General Public License v3.0
442 stars 147 forks source link

Opening explorer API return moves with "uci" attribute not valid #198

Closed fathzer closed 2 years ago

fathzer commented 2 years ago

Hi,

First of all, thanks for providing us with this great API. Nevertheless, it seems the move encoding in result of Opening explorer has a small problem. Here is an example: https://explorer.lichess.ovh/masters?play=d2d4,g8f6,g1f3,g7g6,c1g5,f8g7,b1d2,c7c5,g5f6,g7f6,d2e4,f6d4,f3d4,c5d4,d1d4&topGames=0 The first move returned is a king side castling encoded like that:

{
uci: "e8h8",
san: "O-O"
}

Unfortunately, the uci format for this move is not e8h8 but e8g8 (see UCI specification)

Best regards, Jean-Marc

benediktwerner commented 2 years ago

Lichess generally uses Chess960 UCI notation wherever possible for consistency and unambiguity.

fathzer commented 2 years ago

Thanks for your fast and clear answer. I've learned something :-) Best regards.