Coder Social home page Coder Social logo

raviharav-bot / hyper-stockfish Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 31.0 926.34 MB

code of lichess bot hyper-stockfish

Home Page: https://lichess.org/hyper-stockfish

Python 92.22% Dockerfile 2.28% Shell 5.50%
lichess lichess-api lichess-bot docker python hyper-stockfish heroku herokuapp

hyper-stockfish's Introduction

Build Status Python Build

hyper-stockfish

The code template to make a Lichess Bot and deploy it to heroku server easily. This is the code of @hyper-stockfish and similar heroku run bots in lichess.org

Engine communication code taken from https://github.com/ShailChoksi/lichess-bot by ShailChoksi

Chess Engine

Heroku Buildpack

Heroku Stack

  • Container (allowing a maximum hash size of 512 mb)

How to Use

  • Fork this repository.
  • Install Heroku CLI and create a new app in Heroku.
    Do note that in certain operating systems Heroku CLI doesn't get added to path automatically. If that's the case you'll have to add heroku to your path manually.
  • Run this command in cmd or powershell heroku stack:set container -a appname, where appname is replaced with your Heroku app's name.- Create a new heroku app.
  • Open the Settings tab on heroku and insert your API access token with bot:play scopes enabled in the Config vars field in the format LICHESS_BOT_TOKEN:API-ACCESS-TOKEN, where you replace API-ACCESS-TOKEN with your API Access token.
  • Go to the Deploy tab and click Connect to GitHub.
  • Click on search and then select your fork of this repository.
  • Then Enable Automatic Deploys and then select the main branch (which is already done by default usually) and Click Deploy.
  • Once it has been deployed, go to Resources tab on heroku and enable dynos. (Do note that if you don't see any dynos in the Resources tab, then you must wait for about 5 minutes and then refresh your heroku page.)
  • NOTE if your bot stopped playing but online go to heroku and click on more > restart all dynos

You're now connected to lichess and awaiting challenges! Your bot is up and ready!

to change the engine using

this repo has 3 chess engines if you want to change engine you have to change Dockerfile default is multifish.sh multifish is multivariant stockfish but if you want fairy stockfish change it to fairyfish.sh or you want to add orginal stockfish change it to realsf.sh and deploy your bot in heroku again

hyper-stockfish's People

Contributors

raviharav-bot avatar srimethan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.