Download the PHP package aglaia-resident/chess.php without Composer
On this page you can find all versions of the php package aglaia-resident/chess.php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aglaia-resident/chess.php
More information about aglaia-resident/chess.php
Files in aglaia-resident/chess.php
Download aglaia-resident/chess.php
More information about aglaia-resident/chess.php
Files in aglaia-resident/chess.php
Vendor aglaia-resident
Package chess.php
Short Description Fork of ryanhs/chess.php. chess.php is a PHP chess library that is used for chess move generation/validation, piece placement/movement, and check/checkmate/stalemate detection - basically everything but the AI. NOTE: this is a port of chess.js for php
License MIT
Package chess.php
Short Description Fork of ryanhs/chess.php. chess.php is a PHP chess library that is used for chess move generation/validation, piece placement/movement, and check/checkmate/stalemate detection - basically everything but the AI. NOTE: this is a port of chess.js for php
License MIT
Please rate this library. Is it a good library?
Informations about the package chess.php
Chess.php
This project is a fork of ryanhs/chess.php, which is abandonned. chess.php itself was a port of chess.js. Main changes compared to the original ryanhs project are:
- It is compatible with PHP 8.1.
- PHP Unit has been updated to version 9
- The documentation has been imported right in the project
chess.php is a PHP chess library that is used for chess move generation/validation, piece placement/movement, and check/checkmate/stalemate detection - basically everything but the AI.
NOTE: this is a port of chess.js for php
Installation
composer require aglaia-resident/chess.php
Example Code
The code below plays a complete game of chess ... randomly.
Documentation Summary
Common
- Clear
- Constructor
- Print Board (ASCII)
FEN
- FEN generation
- FEN load
- FEN validation
MISC
- Square Color ?
- Header ?
- History ?
MOVE
- Get all possible moves
- Move
- Undo :-p
PGN
- PGN generation
- PGN load
- PGN parse
- PGN validation
PIECE PLACEMENT
- Get
- Put
- Remove
STATUS
- Game Over ?
- Half Moves Exceeded ?
- Check ?
- Checkmate ?
- Draw ?
- Stalemate ?
- Threefold Repetition ?
- Insufficient Material ?
All versions of chess.php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package aglaia-resident/chess.php contains the following files
Loading the files please wait ....