karayaman / Play-online-chess-with-real-chess-board

Program that enables you to play online chess using real chess boards.
GNU General Public License v3.0
331 stars 24 forks source link

Lichess board API #12

Closed ornicar closed 2 years ago

ornicar commented 2 years ago

Very cool project, congrats.

Unfortunately it currently breaks the lichess terms of service. Indeed, programmatic usage of the GUI is strictly forbideen. See https://lichess.org/page/fair-play

The great news is that we have an API to do the same thing legally! See:

Please replace the programmatic GUI mouse clicks with API calls, to avoid users of this project from being banned from lichess.

karayaman commented 2 years ago

Hi Thibault, thank you very much for your interest to the project! I really don't want this project to break the Lichess terms of service. Indeed, it supports Lichess Board API and it has Lichess only features like:

ornicar commented 2 years ago

Awesome that it supports the Lichess API, thanks for that.

I think you should prevent the mouseclicking from happening on Lichess, to save your users from bans.

To record OTB games, we have much better: create a broadcast to livestream the games with world championship tier tools: https://lichess.org/broadcast

tttiago commented 2 years ago

Hey! First of all, congrats for the great project.

I actually modified it for the sole purpose of broadcasting multiple live games to Lichess, using the Broadcast API. It has already been trialed during an official team match and now I will use it to broadcast a classical tournament at my chess club. Repo at https://github.com/tttiago/ChessBroadcaster.

If you want to adapt your project to use the API instead of mouse clicks, you can grab my code, at least for game recording. I'm also available to collaborate in order to integrate the broadcast feature in your project, if you want to follow that path.

karayaman commented 2 years ago

As a solution to this issue, I've decided to create Lichess-only version of this project Lichess with a real board which does not contain programmatic usage of the GUI.

Although it's just a downgraded version of this project, I'm planning to study the links you have shared and add more features to it.

ornicar commented 2 years ago

Excellent. You could make a blog post to introduce it to the lichess community when you think the time is right. A demo video would illustrate it nicely. Let me know if that happens and I'll see if we can feature it.