updates null moves

This commit is contained in:
DHTMLGoodies
2017-03-01 20:46:43 +01:00
parent 2b1e3e0f04
commit 29dc9b5f8a
4 changed files with 23 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ class MoveBuilder {
}
private function isChessMove($move){
if($move == '--')return true;
return preg_match("/([PNBRQK]?[a-h]?[1-8]?x?[a-h][1-8](?:\=[PNBRQK])?|O(-?O){1,2})[\+#]?(\s*[\!\?]+)?/s", $move);
}