updates
This commit is contained in:
0
Board0x88Config.php
Normal file → Executable file
0
Board0x88Config.php
Normal file → Executable file
0
CHESS_JSON.php
Normal file → Executable file
0
CHESS_JSON.php
Normal file → Executable file
0
DGTGameParser.php
Normal file → Executable file
0
DGTGameParser.php
Normal file → Executable file
0
FenParser0x88.php
Normal file → Executable file
0
FenParser0x88.php
Normal file → Executable file
0
GameParser.php
Normal file → Executable file
0
GameParser.php
Normal file → Executable file
0
MoveBuilder.php
Normal file → Executable file
0
MoveBuilder.php
Normal file → Executable file
0
PgnGameParser.php
Normal file → Executable file
0
PgnGameParser.php
Normal file → Executable file
6
PgnParser.php
Normal file → Executable file
6
PgnParser.php
Normal file → Executable file
@@ -14,7 +14,13 @@ class PgnParser
|
|||||||
{
|
{
|
||||||
if ($pgnFile) {
|
if ($pgnFile) {
|
||||||
$this->pgnFile = $this->sanitize($pgnFile);
|
$this->pgnFile = $this->sanitize($pgnFile);
|
||||||
|
|
||||||
|
if(!file_exists($this->pgnFile)){
|
||||||
|
throw new Exception("File not found: ". $this->pgnFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$this->_fullParsing = $fullParsing;
|
$this->_fullParsing = $fullParsing;
|
||||||
$this->gameParser = new GameParser();
|
$this->gameParser = new GameParser();
|
||||||
$this->pgnGameParser = new PgnGameParser();
|
$this->pgnGameParser = new PgnGameParser();
|
||||||
|
0
autoload.php
Normal file → Executable file
0
autoload.php
Normal file → Executable file
0
composer.json
Normal file → Executable file
0
composer.json
Normal file → Executable file
0
test/ParserTest.php
Normal file → Executable file
0
test/ParserTest.php
Normal file → Executable file
0
test/pgn/1001-brilliant-checkmates.pgn
Normal file → Executable file
0
test/pgn/1001-brilliant-checkmates.pgn
Normal file → Executable file
0
test/pgn/problematic.pgn
Normal file → Executable file
0
test/pgn/problematic.pgn
Normal file → Executable file
0
test/pgn/problematic2.pgn
Normal file → Executable file
0
test/pgn/problematic2.pgn
Normal file → Executable file
Reference in New Issue
Block a user