lichess-bot-devs / lichess-bot

A bridge between Lichess bots and chess engines
GNU Affero General Public License v3.0
751 stars 443 forks source link

Fix `get_opening_explorer_move` when having the black pieces #955

Closed AttackingOrDefending closed 4 months ago

AttackingOrDefending commented 4 months ago

Type of pull request:

Description:

The winrate calculation in get_opening_explorer_move was always from whites perspective, so when playing black, it would choose the worst move available.

Related Issues:

fixes #954

Checklist:

Screenshots/logs (if applicable):