A Modern C++23 Chess Library

chesscxx is a C++23 library for chess programming. It provides the essential tools for working with chess: simulating games, parsing and formatting moves and positions, and generating legal moves.

Features

  • Game simulation — Create and manage chess games, apply validated moves, and query game state.

  • Parsing — Read moves (SAN, UCI), positions (FEN), and games (PGN).

  • Formatting — Convert moves, positions, and games to multiple string formats.

  • Move generation — Generate all legal moves for any position.

  • Documentation — Comprehensive API reference with examples. See the docs →

  • Quality assurance — Tested and validated to ensure correctness and reliability.

Compiler Compatibility

Compiler

Minimum Version

GCC (libstdc++)

15.1


For more details, explore the sections below: