-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
python-chinese-chess/cchess/__init__.py
Line 391 in 5a59068
| if not (0 <= sq <= 90) or square_distance(sq, square) > 2: |
这里的90应该是 < 而不是 <=
此外,对于以下pgn,无法解析:
test.zip
对于诸如”三兵平x“,貌似无法解析:
https://www.xqbase.com/protocol/cchess_move.htm

会抛出下面这个异常
python-chinese-chess/cchess/__init__.py
Line 2247 in 5a59068
| raise ValueError("记号存在歧义(未指明兵(卒)所在列)") |
Metadata
Metadata
Assignees
Labels
No labels