PGN Chess is a chess board representation to play and validate PGN games (player vs player). It also provides with a PHP CLI command to seed a database with PGN games.
Clone or download
programarivm Feature/game metadata (#15)
* the metadata method is implemented

* a filter method is implemented in Movetext

* bug fix

* the integration tests are restructured

* travis setup

* tests/integration/PGN/File/ConvertTest.php fix

* the records are counted in tests/integration/PGN/File/SeedTest.php

* travis update

* GameTest implemented

* docs update

* .travis.yml

* travis setup
Latest commit 1889dbb Aug 24, 2018
Permalink
Failed to load latest commit information.
cli Feature/db seed (#6) Aug 21, 2018
docs Feature/game metadata (#15) Aug 24, 2018
examples Convert::toObject is moved into the Game class Nov 7, 2017
resources Docs/readthedocs (#11) Aug 22, 2018
src Feature/game metadata (#15) Aug 24, 2018
tests Feature/game metadata (#15) Aug 24, 2018
.editorconfig .editorconfig is added Jun 29, 2018
.gitattributes .editorconfig is added Jun 29, 2018
.gitignore Feature/pgntosql (#2) Aug 18, 2018
.travis.yml Feature/game metadata (#15) Aug 24, 2018
LICENSE the license is changed Dec 1, 2017
README.md Cleanup/overall (#14) Aug 23, 2018
composer.json
mkdocs.yml Docs/readthedocs (#10) Aug 22, 2018
phpunit.xml Feature/game metadata (#15) Aug 24, 2018

README.md

PGN Chess

Build Status Documentation Status License: GPL v3

PGN Chess is a chess board representation to play and validate PGN games (player vs player). It also provides with a PHP CLI command to seed a database with PGN games.

Install

Via composer:

$ composer require programarivm/pgn-chess

Instantiation

Just instantiate a game and play PGN moves:

<?php

use PGNChess\Game;

$game = new Game;

$isLegalMove = $game->play('w', 'e4');

All action takes place in the $game object. The call to the $game->play method returns true or false depending on whether or not a chess move can be run on the board.

Documentation

For further information please read the Documentation.

License

The GNU General Public License.

Contributions

Would you help make this library better? Contributions are welcome.

Many thanks.