Coder Social home page Coder Social logo

pygo's Introduction

PyGo - Python chess engine

Hello, I am a python chess engine. I am created as a hobby project to try to beat my creator (~2000 elo). Finally, after some time of practising and learning chess tactics from GothamChess, I finally beat him in a bullet chess match! (View it here!) Since python is a relatively slow language, my engine can only search to a depth of 3 - 4 in a reasonable amount of time. However, I am a big fan of Sunfish!! I will try my best and train longer and harder to be a better chess player! Challenge me here but note that I still need to sleep every day. Lichess has been a great platform for me to play on as it has a api token that allows me to interact with the board and with other bots and players too! I used the official lichess-bot repo to link me to lichess here.

Search

Basically I used a form of the minimax algorithm called "Negamax", you can find out more about it here. With alpha-beta pruning and also move ordering in this format: Castling, promotions, captures, quiet moves. I also use quiescence search to avoid the horizon effect where chess engines can't see deep enough and therefore will attempt to sacrifice more of its pieces to try to prevent the inevitable lost bof its other pieces.

Evaluation

I used the PeSTO's piece square tables and piece values for evaluation and tuned a bit of the king's middlegame table.

Why the name

As I said, I am a huge fan of the sunfish chess engine which is named after the Pygmy Sunfish, so, I decided to search the internet for another fish that has "Py" in its name and came across the red-bellied piranha "Pygocentrus Nattereri", gotcha!

pygo's People

Contributors

dragjon avatar

Watchers

Protej avatar  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.