Python Chess

Open-source Python projects categorized as Chess

Top 23 Python Chess Projects

  1. sunfish

    Sunfish: a Python Chess Engine in 111 lines of code

    Project mention: Something weird is happening with LLMs and chess | news.ycombinator.com | 2024-11-14

    I think that's the most plausible theory that would explain the sudden hike from gpt-3.5-turbo to gpt-3.5-turbo-instruct, and again the sudden regression in gpt-4*.

    OpenAI also seem to augment the LLM with some type of VM or a Python interpreter. Maybe they run a simple chess engine such as Sunfish [1]?

    [1] https://github.com/thomasahle/sunfish

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. 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: Playing Chess with 84,688 Regular Expressions | news.ycombinator.com | 2025-01-06
  4. maia-chess

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

  5. lichess-bot

    A bridge between Lichess bots and chess engines

  6. pychess

    PyChess - a chess client for Linux/Windows

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

  8. command-line-chess

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

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. pgx

    ♟️ Vectorized RL game environments in JAX (by sotetsuk)

  11. chessencryption

    Chess Encryption 🔑

    Project mention: Storing Files in Chess Games | news.ycombinator.com | 2024-09-09
  12. chess-openings

    An aggregated data set of chess opening names

  13. nnue-pytorch

    Stockfish NNUE (Chess evaluation) trainer in Pytorch

  14. Play-online-chess-with-real-chess-board

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

  15. neural_network_chess

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

  16. neural-chessboard

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

  17. stockfish

    Integrates the Stockfish chess engine with Python (by zhelyabuzhsky)

  18. pychess-variants

    Chess variants server

  19. 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)

  20. berserk

    Python client for the lichess API

  21. chessboard-recognizer

    Uses neural networks to extract chess positions from images

  22. chess-transformers

    Teaching transformers to play chess

    Project mention: Chess Transformers: Teaching transformers to play chess | news.ycombinator.com | 2024-11-15
  23. pgn-tactics-generator

    Generate chess puzzles / tactics from a pgn file

  24. lichs

    ♟ Play chess against real players in your terminal using Lichess

  25. chesscog

    Determining chess game state from an image.

  26. 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 discussion

Log in or Post with

Python Chess related posts

  • I ask this chess puzzle to every new LLM

    1 project | news.ycombinator.com | 26 Jan 2025
  • Playing Chess with 84,688 Regular Expressions

    6 projects | news.ycombinator.com | 6 Jan 2025
  • Something weird is happening with LLMs and chess

    7 projects | news.ycombinator.com | 14 Nov 2024
  • Chess Transformers: Teaching transformers to play chess

    1 project | news.ycombinator.com | 15 Nov 2024
  • Something weird is happening with LLMs and Chess

    2 projects | news.ycombinator.com | 14 Nov 2024
  • Show HN: Termichess – Play chess right on your terminal

    5 projects | news.ycombinator.com | 7 Oct 2024
  • Chessli – chess improvement app that combines the power of Lichess and Anki

    1 project | news.ycombinator.com | 10 Apr 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 17 Jul 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

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

# Project Stars
1 sunfish 3,113
2 python-chess 2,617
3 maia-chess 1,045
4 lichess-bot 883
5 pychess 751
6 irwin 516
7 command-line-chess 512
8 pgx 499
9 chessencryption 429
10 chess-openings 428
11 nnue-pytorch 398
12 Play-online-chess-with-real-chess-board 337
13 neural_network_chess 323
14 neural-chessboard 303
15 stockfish 293
16 pychess-variants 266
17 cli-chess 232
18 berserk 143
19 chessboard-recognizer 132
20 chess-transformers 128
21 pgn-tactics-generator 124
22 lichs 119
23 chesscog 118

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?