Torom / BotLi

Lichess Bot
GNU Affero General Public License v3.0
44 stars 82 forks source link

Adding Lichess Evaluation for chess960 #81

Closed QANs12 closed 1 year ago

QANs12 commented 1 year ago

This is something that is needed for your Botli. When stockfish play with its normal evaluation on a normal/ low computer, the opening gets worse and much worse during the midgame.

The solution for this I thought was adding lichess cloud eval to chess960 just like for standard games.

If this becomes successful, I think it can help the stockfish to play in a stronger manner.

QANs12 commented 1 year ago

Lichess cloud eval works only for the first move.

Torom commented 1 year ago

Have you checked if Lichess really has a cloud evaluation for the following positions? It is usually the case with 960 that Lichess only has a cloud evaluation for the start positions.

QANs12 commented 1 year ago

here https://lichess.org/api#tag/Analysis/operation/apiCloudEval I think We can get cloud eval for any variant

Torom commented 1 year ago

That is not the point. BotLi uses this endpoint for cloud evaluation. I just assume that Lichess has no evaluation for the position in question. Please post the link to a game where BotLi plays only the first move from the cloud.

QANs12 commented 1 year ago

I think this is the game https://lichess.org/FleDFbVu/black#5

QANs12 commented 1 year ago

here https://lichess.org/api#tag/Analysis/operation/apiCloudEval I think We can get cloud eval for any variant

I went through this as well it shows variants are available which means chess960 too. Can you tell the py file where cloud eval thing is there?

Torom commented 1 year ago

I think this is the game https://lichess.org/FleDFbVu/black#5

Okay, these are the cloud evaluations for this game:

start position:

{"fen":"nnbrkbqr/pppppppp/8/8/8/8/PPPPPPPP/NNBRKBQR w KQkq - 0 1","knodes":27674,"depth":26,"pvs":[{"moves":"f2f3 a8b6 d2d4 f7f6 a1b3 g8f7 e2e4 d7d5 b1c3 d5e4","cp":67}]}

after move 1. f3:

{"fen":"nnbrkbqr/pppppppp/8/8/8/5P2/PPPPP1PP/NNBRKBQR b KQkq - 0 1","knodes":909,"depth":21,"pvs":[{"moves":"a8b6 d2d4 f7f5 b1c3 g8f7 a1b3 d7d6 e2e4 e7e5 d4e5","cp":62}]}

after move 1... Nb6:

{"error":"Not found"}

So as you can see, it's not because of BotLi that no more moves are played from the cloud. The cloud simply has no more moves in further positions.