96 Commits

Author SHA1 Message Date
ca283b0726 allow castle with move suffix and/or NAG 2023-06-19 10:49:55 +02:00
8187168ca2 more cleanPgn() cleanup: trim lines, del initial blanks, one space only... 2023-06-18 21:56:01 +02:00
ce0923d0e9 Much faster regex to catch brackets inside braces 2023-06-18 17:53:17 +02:00
e939a58b38 fix #2: Add common PGN tags in "specialMetadata" array. 2023-06-14 15:48:15 +02:00
5ca6c49f62 fix for #1 (1, 2, 9, 13), by hiding brackets in movetext comments 2023-06-14 15:18:37 +02:00
29f778308b Fix issue #1. But not the dangerous problems with (9) and (13). 2023-06-13 22:24:25 +02:00
638ad1fd2d keep a string of moves/comments when parsing PGN. 2021-06-05 20:41:53 +02:00
6c8c93f451 Cancel "$1" style removal in cleanPgn 2021-06-05 13:12:35 +02:00
0752f04ce4 Fix bug #11 (lost double quotes in "] pattern 2021-06-05 13:02:43 +02:00
2bb109b77c remove wrong file_put_contents 2021-06-05 12:56:14 +02:00
Alf Magne Kalleland
e6031ebf6f Merge pull request #10 from Wugapodes/license
license: Add license documents and specify version
2020-03-26 13:05:58 +01:00
wugapodes
375f40e374 license: Add license documents and specify version
The readme says this project is licensed under the LGPL, but does
not specify a version or include the license text. This commit adds
the LGPL license as COPYING.LESSER and the GPL which it requires
as COPYING. These are the v3+ versions of the license.

This commit also applies formatting fixes to README.md
2020-01-06 14:48:11 -08:00
Alf Magne Kalleland
d3773ab4fb Fix bug in parser when there are hidden chars at beginning of pgn 2019-07-06 22:05:35 +02:00
Alf Magne Kalleland
1586531863 Bugfix 2019-06-24 20:39:33 +02:00
Alf Magne Kalleland
30e27ab65d Merge pull request #8 from juanjdeleon/better-composer
Better composer
2018-07-04 01:08:14 +02:00
Alf Magne Kalleland
8761d777fe Fix problem with en passant moves in combination with king in chess
The parser did not handle fen's like

8/8/7p/5P1k/5pPp/P6K/4r2R/8 b - g3

properly. It reported pawn h4 to g3 as an invalid move. This has now been fixed
2018-06-30 14:03:55 +02:00
Juan De Leon
e28a62b4a0 Add required properties to install library through VCS repository 2018-05-08 12:32:31 -05:00
Juan De Leon
6f96f37ed2 Merge branch 'issue/5-autoload' of https://github.com/christeredvartsen/chessParser into better-composer 2018-05-08 12:04:18 -05:00
DHTMLGoodies
0e28c13fef Handle %csl and %cal (arrows and highlights) 2018-01-06 13:31:19 +01:00
DHTMLGoodies
6db8d3806d Fixed bug parsing comments 2017-09-02 13:39:20 +02:00
DHTMLGoodies
88b0b3fbf0 Fixed bug parsing comments 2017-09-02 13:12:53 +02:00
DHTMLGoodies
ddeb4e8510 bugfix - to short version - skipping comment moves 2017-08-17 14:36:12 +02:00
DHTMLGoodies
69466a1b45 updates 2017-08-17 14:33:53 +02:00
DHTMLGoodies
bdaa2b31cd updates 2017-08-17 14:31:25 +02:00
DHTMLGoodies
68d6e084c9 Bugfixes + support for getting shorter parsing format 2017-08-17 13:53:35 +02:00
Christer Edvartsen
31c4ff57af Add autoload information to composer.json
The commit adds the base directory of the project to the classmap way of
autoloading classes through Composer.

Resolves #5
2017-08-07 14:51:47 +02:00
DHTMLGoodies
9490f2cd09 throwing exception if not valid move in move method 2017-04-15 20:24:49 +02:00
DHTMLGoodies
0e2544f133 Merge branch 'master' of github.com:DHTMLGoodies/chessParser 2017-04-14 19:17:49 +02:00
DHTMLGoodies
bd8ff3e485 updates 2017-04-14 19:17:26 +02:00
DHTMLGoodies
18768ccb5d SUpport for arrows in pgn 2017-03-29 20:49:12 +02:00
DHTMLGoodies
40a19a7551 Support for arrow and highlight actions in pgn 2017-03-29 18:48:07 +02:00
DHTMLGoodies
126dc9b599 JSON to PGN parser 2017-03-13 20:56:22 +01:00
DHTMLGoodies
29dc9b5f8a updates null moves 2017-03-01 20:46:43 +01:00
DHTMLGoodies
2b1e3e0f04 Added support for one line pgn 2017-03-01 19:51:08 +01:00
DHTMLGoodies
a834acb72e Added support for one line pgn 2017-03-01 19:43:06 +01:00
DHTMLGoodies
83efc94107 Gracefully skiping games the parser don't understand 2017-02-22 18:15:12 +01:00
DHTMLGoodies
1fcf22de2c before find words routine 2017-02-05 14:24:49 +01:00
DHTMLGoodies
155af550c1 Fixed problem with some pawn moves 2017-02-04 22:59:30 +01:00
DHTMLGoodies
5fe2491d1f short promoteTo, i.e. q instead of queen 2017-01-31 02:34:14 +01:00
DHTMLGoodies
8e35529117 Updates 2017-01-31 02:30:12 +01:00
DHTMLGoodies
d8a7869b33 Implemented Stockfish JS engine 2017-01-30 18:13:12 +01:00
DHTMLGoodies
5505a28b1d Parsing out clock %clk comments 2017-01-30 13:42:28 +01:00
DHTMLGoodies
d17e42e7da updates 2017-01-30 13:21:54 +01:00
DHTMLGoodies
a7a0f37ae0 Always set En passant square when pawn moves to squares 2016-01-12 22:11:42 +01:00
DHTMLGoodies
fd4147d036 Always set En passant square when pawn moves to squares 2016-01-12 22:07:49 +01:00
DHTMLGoodies
3ec671f536 Code comments and minor refactoring 2015-12-31 02:32:28 +01:00
DHTMLGoodies
2b0d0c9536 Readme doc updates 2015-12-28 17:29:03 +01:00
DHTMLGoodies
81523dc93f Readme doc updates 2015-12-28 17:28:21 +01:00
DHTMLGoodies
d3015694d6 Readme doc updates 2015-12-28 17:26:28 +01:00
DHTMLGoodies
b827b36457 New methods + documentation 2015-12-28 17:23:12 +01:00