.. bulletchess documentation master file, created by sphinx-quickstart on Thu May 22 18:37:37 2025. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. ``bulletchess`` ============================== ``bulletchess`` is a Python module for playing, analyzing, and building engines for chess. Unlike other chess libraries in Python, the core of ``bulletchess`` is written in C, allowing it to be :doc:`much ` faster than alternatives. Overview --------- At a high level, ``bulletchess`` includes: * A complete game model with intuitive representations for pieces, moves, and positions. * Extensively tested legal move generation, application, and undoing. * Parsing and writing of positions specified in `Forsyth-Edwards Notation `_ (FEN), and moves specified in both `Long Algebraic Notation `_ and `Standard Algebraic Notation `_. * Methods to determine if a position is check, checkmate, stalemate, and each specific type of draw. * Efficient hashing of positions using `Zobrist Keys `_. * A `Portable Game Notation `_ (PGN) file reader * Utility functions for writing engines. `Github Repository `_ .. code-block:: bash pip install bulletchess Glossary --------- .. toctree:: :maxdepth: 1 auto-examples/walkthrough auto-examples/performance main utils pgn