chess-core
Welcome to chess-core-kmp! This Kotlin Multiplatform 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. It has no runtime dependencies and does not include a chess engine or AI.
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.