Chess 0.0.1
A library written in c
|
A portable C library for representing and manipulating chess positions, and generating legal moves. This library provides a clean API for chess engines, GUIs, and tools.
Include the main header in your project:
Creating a new position and generating moves
This library is written in standard C and should compile with any modern C compiler. It requires at least C11 support. To build using cmake:
chess_position_new()
: Create a new position with the standard starting positionchess_position_drop()
: Destroy the position, freeing all resources held by it.chess_moves_generate()
: Generate all legal moveschess_move_do()
: Make a move on a positionchess_position_from_fen()
, chess_position_to_fen()
: convert to and from FEN*_from_algebraic()
, *_to_algebraic()
: convert to and from algebraic notationSee the include/chess/
headers for full API documentation.
MIT License. See LICENSE for details.