Skip to content

watislaf/chessbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChessBot en HitCount

Bot to play chess on chess.com for me (cause i am to lazy to learn how to bee good at chess)(Linux only).

Current ELO rating is 2330.


You can try out the Engine.

ezgif.com-gif-to-mp4.1.mp4

Or compete it with other players

bot_show.1.1.1.1.mp4

Quick Install

Check releases, and download latest ChessBot.zip(board and bot) or Engine.zip (board only). And run it with Run instructions

Features

  • 64 bit board representation.
  • The code is divided into three parts: self-written chess engine in C++, board visualisation and computer vision on python.
  • The code was optimized by blood and sweat to keep your computer from exploding during chess game.
  • After you build the project , there is an uninstall script, to remove all redundant libraries (and the project 🥲).
  • You can Build only on Linux so that's +1 (one more) reason to install linux.
  • asm insert code

Authors

Development status

My goal waas 2000 ELO on chess.com, and still i'm not banned (ok iam banned but it is only because of my insolence), so i think this is sukces.

Build

Download source files.

  git clone https://github.com/watislaf/chessbot.git # install
  cd ./chessbot

if you don't have git, just download source from this page.

Next, there is a small script to build the project.

If you don't need the bot part, but want a taste of a losing game in chess, press No, so the OpenCv library will not be downloaded.

  bash ./setup.sh    
  cd ./dir

Build the project, answer No only if you do not Bot version, now there is an .zip that u can unpack.

Run

To run a board-game:

    ./ChessBot  --mode=board 
                --white_player=[human|engine] # default is human
                --black_player=[human|engine] # default is engine
                --lvl=[easy|bullet|blitz|rapid]  # 0,1,3,10 min games. default is bullet

Or to run the second mode (only if you pressed Yes in setup.sh script). Check settings.png file with your chess.com settings.

    ./ChessBot --mode=chesscom                 
                --level=[bullet|blitz|rapid]  

Reinstall and uninstall (only if source was code downloaded)

If you pressed No, but changed your mind, type

  bash ./setup.sh reinstall 

Here you can answer Yes again.

Uninstall

It is also possible to uninstall the script (and all downloaded with this project libraries).

  bash ./unis.sh  

About

Bot to play chess on chess.com for me ( cause i am to lazy to learn how to bee good at chess)

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages