Code Monkey home page Code Monkey logo

pychessbot's Introduction

PyChessBot

PyChessBot is a chess bot written in Python for Windows only.

Disclaimer

  • I do NOT endorse any sort of cheating. This program should be used for educational purposes only, or against offline bots.

Installing

  • Clone the repository or download the zip file from GitHub

  • Install dependencies:

      pip install -r requirements.txt
    
  • Download a chess engine of your choice | Stockfish 13

  • Extract the zip, and create a folder called "bin" in the root program folder

  • Rename the engine executable to "engine.exe"

  • Place the renamed executable in the "bin" folder

  • Run the program:

      cd PyChessBot
      python main.py
    

    Or alternatively double click start.bat

Usage

  • Toggle between play as white and play as black mode
  • Select the boundaries of the board on the screen by long clicking the top-left corner until indicated by the message box, and repeat for the bottom-right corner.
  • The bot will start playing after the start button is pressed
  • Click on the CTRL key to pause the bot

Notes

  • Do NOT move the mouse while the bot is playing, or move any window over the board.
  • Make the colors of the board different from the colors of the pieces
  • If you can, turn off piece animations
  • The sliders currently don't work yet
  • The bot assumes that the opponent always promotes to a queen, so it WILL malfunction if they promote to something else
  • The bot can promote to other pieces, but only on chess.com and lichess.org

Citation

Logo Sources:

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.