lynx-chess / Lynx_BOT

Lichess bot. Runs Lynx chess engine (https://github.com/lynx-chess/Lynx)
https://lichess.org/@/Lynx_BOT
GNU Affero General Public License v3.0
3 stars 1 forks source link

I need help #2

Closed FatFritz2 closed 1 year ago

FatFritz2 commented 1 year ago

Can you provide more informations to install this bot Can I change from Lynx to Stockfish ?

eduherminio commented 1 year ago

What do you mean by 'installing' the bot?

You can find the engine binaries under lynx-chess/Lynx/releases. That's how you normally run the engine locally to play against other local engines.

What this repo does is generating a Docker image with those binaries and a specific version of lichess-bot-devs/lichess-bot (this one) whenever there's a new Lynx release.

So you can make Lynx play for your lichess BOT account by:

And although you could relatively easily make something similar for Stockfish, you would need to first replicate what I do in docker-publish.yml but using Stockfish binaries to mix them with lichess-bot-devs/lichess-bot in an image. Once that's achieved, it'd be matter of 'just' changing the image: part of the docker-compose.yml file.

FatFritz2 commented 1 year ago

I can't install docker and I guess its paid to run this so yea idk how :(

eduherminio commented 1 year ago

I'm afraid I'm not sure what you mean.

Docker and Docker engine are free to use. Docker Desktop for Windows, which I assume it's what you're referring to, is also free to use for individuals.

*Docker Desktop is free to use, as part of the Docker Personal subscription, for individuals, non-commercial open source developers, students and educators, and small businesses of less than 250 employees AND less than $10 million in revenue. Commercial use of Docker Desktop at a company of more than 250 employees OR more than $10 million in annual revenue requires a paid subscription (Pro, Team, or Business) to use Docker Desktop. While the effective date of these terms is August 31, 2021, there is a grace period until January 31, 2022 for those that require a paid subscription to use Docker Desktop.

(source: docker.com/pricing)

I'd recommend reading about it and following the instructions in https://docs.docker.com/

FatFritz2 commented 1 year ago

Oh hi, I have done installing Docker. What do I do now ?

eduherminio commented 1 year ago
FatFritz2 commented 1 year ago

Oh after I run "docker compose up" it appeared this :

error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.project%3Dlynx%22%3Atrue%7D%7D": open //./pipe/docker_engine: The system cannot find the file specified.

eduherminio commented 1 year ago

That generally means that docker itself is not running. If you're using Windows, try starting Docker Desktop app first and wait for a few seconds. You can double check with docker run hello-world that Docker is running correctly before jumping into anything else.

FatFritz2 commented 1 year ago

Oh One more question: Docker uses my resources right ? ( CPU and RAM )

eduherminio commented 1 year ago

Of course, and you can configure/limit it in in the docker-compose file in this way.