Skip to content

Commit

Permalink
Improved the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed May 8, 2024
1 parent cacd2b8 commit bfcc98f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/Variant/Classical/AbstractPgnParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@
use Chess\Variant\Classical\PGN\AN\Color;
use Chess\Variant\Classical\PGN\AN\Piece;

/**
* AbstractPgnParser
*
* The root class in the hierarchy of chess boards defines the getter and the
* setter methods, in addition to implementing the internal methods required to
* convert a PGN move in text format into a data structure.
*
* @author Jordi Bassagaña
* @license MIT
*/
class AbstractPgnParser extends \SplObjectStorage
{
/**
Expand Down
4 changes: 2 additions & 2 deletions src/Variant/Classical/Board.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function getPieceBySq(string $sq): ?AbstractPiece
*
* @param string $color
* @param string $pgn
* @return bool true if the move can be made; otherwise false
* @return bool
*/
public function play(string $color, string $pgn): bool
{
Expand All @@ -240,7 +240,7 @@ public function play(string $color, string $pgn): bool
*
* @param string $color
* @param string $lan
* @return bool true if the move can be made; otherwise false
* @return bool
*/
public function playLan(string $color, string $lan): bool
{
Expand Down

0 comments on commit bfcc98f

Please sign in to comment.