Python Chess

Open-source Python projects categorized as Chess

Top 23 Python Chess Projects

  • sunfish

    Sunfish: a Python Chess Engine in 111 lines of code

  • Project mention: funAndEasyToUse | /r/ProgrammerHumor | 2023-07-11

    The NNUE version does but the non-NNUE version doesn't use numpy. That numpy import is for a neural network based evaluation functions. The base engine still plays at a strong human level and doesn't use numpy to do any of the heavy lifting. It does rely on itertools and collections though.

  • python-chess

    A chess library for Python, with move generation and validation, PGN parsing and writing, Polyglot opening book reading, Gaviota tablebase probing, Syzygy tablebase probing, and UCI/XBoard engine communication

  • Project mention: Permissive chess lib | /r/chessprogramming | 2023-08-19
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • maia-chess

    Maia is a human-like neural network chess engine trained on millions of human games.

  • Project mention: Grandmaster-Level Chess Without Search | news.ycombinator.com | 2024-02-09

    This was studied with the Maia series of bots. See:

    https://github.com/CSSLab/maia-chess

  • lichess-bot

    A bridge between Lichess API and chess engines

  • Project mention: How to make a Lichess bot in Python | dev.to | 2024-04-30

    Clone https://github.com/lichess-bot-devs/lichess-bot.git into your new project! Make sure you have github installed!

  • pychess

    PyChess - a chess client for Linux/Windows

  • command-line-chess

    A python program to play chess against an AI in the terminal.

  • irwin

    irwin - the protector of lichess from all chess players villainous

  • Project mention: How common is false banning in chess? | /r/chess | 2023-07-11

    For Lichess, you can get some sort of idea from reading the code. If I remember correctly, there's some threshold for the site suspecting you of cheating based on a variety of simple metrics (accuracy, blurring, etc) and then it gets sent to machine learning tools to analyze (here is one of them, and here's another).

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • chess-openings

    An aggregated data set of chess opening names

  • Project mention: Is there a chess library in Python (or any other programming language but Python preferred) that will allow me to identify the opening of a game by passing the PGN of the game as input? | /r/chess | 2023-06-02

    Not a library, but at least a collection of openings in a machine readable format. Also a script to manipulate it in the bin/ folder. https://github.com/lichess-org/chess-openings

  • Play-online-chess-with-real-chess-board

    Program that enables you to play online chess using real chess boards.

  • pgx

    🎲 Vectorized RL game environments in JAX (by sotetsuk)

  • Project mention: Best way to learn how to write blazing fast code ? | /r/rust | 2023-12-06

    There are some mindboggling game implementations in JAX here (has a chess implementation) and here so it might just be possible...

  • neural-chessboard

    ♔ An Extremely Efficient Chess-board Detection for Non-trivial Photos ♔

  • neural_network_chess

    Free Book about Deep-Learning approaches for Chess (like AlphaZero, Leela Chess Zero and Stockfish NNUE)

  • stockfish

    Integrates the Stockfish chess engine with Python (by zhelyabuzhsky)

  • cli-chess

    A highly customizable way to play chess in your terminal / command line. Play online (via Lichess.org) and offline against the Fairy-Stockfish engine. All Lichess variants are supported. (by trevorbayless)

  • berserk

    Python client for the lichess API

  • lichs

    ♟ Play chess against real players in your terminal using Lichess

  • chessli

    A free and open source chess improvement app that combines the power of Lichess and Anki.

  • Project mention: Chessli – chess improvement app that combines the power of Lichess and Anki | news.ycombinator.com | 2024-04-10
  • pgn-tactics-generator

    Generate chess puzzles / tactics from a pgn file

  • chessboard-recognizer

    Uses neural networks to extract chess positions from images

  • chesscog

    Determining chess game state from an image.

  • fastchess

    Predicts the best chess move with 27.5% accuracy by a single matrix multiplication

  • external-engine

    Using engines running outside of the browser on https://lichess.org/analysis

  • chess-artist

    A python script that can annotate chess games in pgn file with static evaluation or search score of an engine, can annotate an epd file with acd, acs, bm, and ce opcodes, can test engine with epd test suite and can generate chess puzzles.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Chess related posts

Index

What are some of the best open-source Chess projects in Python? This list will help you:

Project Stars
1 sunfish 2,891
2 python-chess 2,309
3 maia-chess 900
4 lichess-bot 699
5 pychess 667
6 command-line-chess 492
7 irwin 486
8 chess-openings 341
9 Play-online-chess-with-real-chess-board 330
10 pgx 328
11 neural-chessboard 272
12 neural_network_chess 268
13 stockfish 259
14 cli-chess 154
15 berserk 142
16 lichs 110
17 chessli 106
18 pgn-tactics-generator 104
19 chessboard-recognizer 97
20 chesscog 88
21 fastchess 83
22 external-engine 70
23 chess-artist 66

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com