Skip to content

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.

License

Notifications You must be signed in to change notification settings

evilgenieent/pgn-chess

Repository files navigation

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.

  • Feel free to send a pull request
  • Drop an email at [email protected] with the subject "PGN Chess Contributions"
  • Leave me a comment on Twitter
  • Say hello on Google+

Many thanks.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages