Closed had3z closed 3 years ago
It looks like getting this to work on Lichess will depend on some kindly and very smart person porting Leela Chess Zero to Webassembly. Leela mentions this as a project that some future volunteer might want to take on:
https://lczero.org/contribute/
In the meantime, the easiest way I've found to do this is to run Leela Chess Zero in a local chess GUI with a Maia net loaded. I've used Nibbler successfully for this:
In Nibbler:
I've found that sometimes Nibbler halts the engine (especially if I go back to review moves). In that case, I just need to go back to the latest move and do Versus->Play this colour (or F9) again.
It would be fantastic if Lichess made this an engine you could play like you can play Stockfish, but until it does this seems to be the best option.
Thanks @clawsoon that's a great explanation of how to get it working.
Building on that you can on Lichess start a game from a position with the engines so while it's not the whole line it is at least an approximation.
But to more directly answer your request, I don't think we can implement opening requests. We only can interact with the opponents via the game chat (and that has issues #13 of its own). So they would have to be done via some kind of chat bot type interface, which would be complicated both in it's UI and in how the bots run (the chat and moves are in different processes).
before the game starts, perhaps maia could accept a parameter with the desired opening it should attempt. things to consider:
this would do wonders for those of us learning openings and trying to navigate the lines