How chesscom/chess-game works
Chess-Game is a PHP library that represents and manipulates a chess game as an object. The principal workflow is a caller using the game object to initialize a position, submit moves, and inspect or update game state; the sampled class includes move parsing and validation. PEAR.php is also autoloaded as a bundled compatibility file. The excerpts do not establish a direct call from ChessGame to PEAR, so that connection is omitted.
Main entry points: ChessGame.php Chess game object
Components 3
Runtime library
- Chess game object
src/Chess/Game/ChessGame.php - PEAR compatibility
PEAR.php
Other components
- Library caller
Connections 1
- Library caller → Chess game object: uses game API
README.md