chess-core
Welcome to chess-core
! This Kotlin library is designed to handle all the core logic and rules of chess, making it easy to build chess apps, tools, or analysis utilities. It focuses on move generation, rule enforcement, and game state management. If you want to connect to a chess engine like Stockfish for analysis or computer play, this library provides a simple wrapper for that—but it does not include a chess engine or AI itself.
Features
Comprehensive Chess Rules: Handles all standard chess rules, including castling, en passant, pawn promotion, and draw conditions (like threefold repetition and the fifty-move rule).
FEN and PGN Support: Easily load and export games using Forsyth-Edwards Notation (FEN) and Portable Game Notation (PGN) for saving, sharing, and analyzing games.
Fast Move Generation: Quickly generate all legal moves for any position—ideal for building analysis tools, GUIs, or integrating with chess engines.
Modular and Extensible: The code is organized for easy extension, so you can add features or adapt it for your own chess-related projects.
Engine Communication: Includes a wrapper to communicate with external chess engines like Stockfish for advanced analysis or computer play.