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

  • SaaSHub

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

    SaaSHub logo
  • 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

  • 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 bots 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

  • irwin

    irwin - the protector of lichess from all chess players villainous

    Project mention: The CrowdStrike file that broke everything was full of null characters | news.ycombinator.com | 2024-07-19

    I play one of those games that doesn’t strongly enforce anti-cheating, and I agree with you that it’s a huge detraction compared to games with strong anti-cheat.

    But I strongly disagree about the use of invasive client-side anti-cheat. Server-side anti-cheat can reduce the number of cheaters to an acceptably low level.

    See for example how lichess detects and aids in detection of cheaters: https://github.com/clarkerubber/irwin

    And chess is a game where I feel like it would be relatively hard to detect cheating. An algorithm looking at games with actors moving in 3D space and responding to relative positions and actions of multiple other actors should have a great many more ways to detect cheating over the course of many games.

  • command-line-chess

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

  • 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...

  • chess-openings

    An aggregated data set of chess opening names

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

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

  • chessencryption

    Chess Encryption 🔑

    Project mention: Storing Files in Chess Games | news.ycombinator.com | 2024-09-09
  • neural_network_chess

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

  • neural-chessboard

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

  • stockfish

    Integrates the Stockfish chess engine with Python (by zhelyabuzhsky)

  • pychess-variants

    Chess variant server

  • cli-chess

    A highly customizable way to play chess in your terminal. 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

  • pgn-tactics-generator

    Generate chess puzzles / tactics from a pgn file

  • 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
  • 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

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 discussion

Log in or Post with

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,956
2 python-chess 2,403
3 maia-chess 916
4 lichess-bot 754
5 pychess 695
6 irwin 501
7 command-line-chess 498
8 pgx 398
9 chess-openings 371
10 Play-online-chess-with-real-chess-board 332
11 chessencryption 311
12 neural_network_chess 286
13 neural-chessboard 281
14 stockfish 275
15 pychess-variants 238
16 cli-chess 182
17 berserk 141
18 lichs 114
19 pgn-tactics-generator 112
20 chessli 112
21 chessboard-recognizer 107
22 chesscog 96
23 fastchess 86

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