Help with lichess Client for Picochess

126 views
Skip to first unread message

Dirk

unread,
Oct 22, 2022, 6:56:58 AM10/22/22
to PicoChess
Monosnap 2022-10-22 12-13-19.jpg

Online play on a DGT eBoard/Revelation: for me is a love and hate relationship ;-)

But nevertheless it would be nice if we could add a lichess client to Picochess for online play.

We already have a basic online client for FICS (FreeInternetChessServer) but lichess is still missing although I started to implement a lichess client years ago. 

Online_listen.mov 2022-10-22 12-41-03.jpg

Because of my restricted python knowledge  I tried to add lichess via my enhanced UCI framework like I did for the PGN replay and FICS engine (more about that in this thread/posting: 

UCI wrapper

https://groups.google.com/g/picochess/c/czHRxH9HLw4

Problems with lichess

https://groups.google.com/g/picochess/c/czHRxH9HLw4/m/v3qa-5CrBgAJ

The lichees client worked more or less ok (there were some strange delays from time to time which are related to the python-berserk framework I think but I never could figure it out here are two short videos from that time:

lichess_bot.MOV 2022-10-22 12-47-22.jpg

https://www.dropbox.com/s/hmw0x4v51xbmn75/pico_lichess_stf.mov?dl=0

https://www.dropbox.com/s/6dmaw47mq829p5g/lichess_bot.MOV?dl=0

As I no longer develop myself I just wanted to release the client as it is current status but unfortunately something must have changed in the lichess interface (I assume something with the authorization procedure but I don't know for sure) and my client no longer works.

Although the code is terrible (because of the UCI Rapper and my lack of knowledge how to handle multiple tasks properly I am willing to share the code with someone who wants   to give it a try (I assume it might not be that big problem to fix this).

So technically I was using the berserk framework for accessing the lichess server (you can find similar examples on GitHub) and put a UCI wrapper around the client so that we could use the client as a normal uci engine (which is definitely not the best solution).

https://berserk.readthedocs.io/en/master/readme.html

https://github.com/rhgrant10/berserk

Authorization was via a token (which had to be generated for the specific user on the lichess web site.

If someone is willing to give it a try and create a working client I am willing to share the (at the moment) non working code but it might be better when someone gets rid off my  messy old code and tries to add the client properly.


Thanks

Dirk

Reply all
Reply to author
Forward
Message has been deleted
0 new messages