Skip to content

Commit

Permalink
Updated squares
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Jan 31, 2025
1 parent c979072 commit 100a861
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Variant/Capablanca/PGN/Square.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class Square extends ClassicalSquare
{
const REGEX = '[a-j]{1}[1-8]{1}';

const EXTRACT = '/[^a-j1-8 "\']/';

const SIZE = [
'files' => 10,
'ranks' => 8,
];

const EXTRACT = '/[^a-j1-8 "\']/';
}
14 changes: 7 additions & 7 deletions src/Variant/Classical/PGN/Square.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ class Square extends AbstractNotation
*/
const REGEX = '[a-h]{1}[1-8]{1}';

/**
* Regular expression representing a square for further extraction from strings.
*
* @var string
*/
const EXTRACT = '/[^a-h0-9 "\']/';

/**
* The size of the chess board.
*
Expand All @@ -24,13 +31,6 @@ class Square extends AbstractNotation
'ranks' => 8,
];

/**
* Regular expression representing a square for further extraction from strings.
*
* @var string
*/
const EXTRACT = '/[^a-h0-9 "\']/';

/**
* All squares of the chess board.
*
Expand Down

0 comments on commit 100a861

Please sign in to comment.