windshadow233 / python-chinese-chess

A simple Chinese chess library written in python
GNU General Public License v3.0
32 stars 11 forks source link

一兵平四,一卒进1等不在合法动作内 #4

Open Shang-zt opened 5 months ago

Shang-zt commented 5 months ago

illegal notation: '一卒进1' in '1R1cka3/4a4/9/9/p8/p8/p8/p8/9/4K4 b - - 9 5' illegal notation: '一卒平5' in '3a5/5k3/b3P2Rb/9/9/5p3/3p5/9/3p1p1p1/2B1K2n1 b - - 9 6' illegal notation: '一兵平四' in '3a1kb2/2P1a1P1R/1RC6/n1N2PPc1/2b6/2B2pNr1/2P6/2n2App1/2p2K1p1/2B2ArC1 w - - 1 2' illegal notation: '一兵平四' in '3a1kb2/2P1a1P1R/1RC6/n1N2PPc1/2b6/2B2pNr1/2P6/2n2App1/2p2K1p1/2B2ArC1 w - - 1 2' illegal notation: '一卒平5' in '2P2a3/3k2C2/4R3b/9/3r2p1P/3p5/7C1/B8/3p2ppc/c3K4 b - - 7 9'

windshadow233 commented 5 months ago

四字记谱法说明

对于“兵(卒)”,可能存在同一纵线上超过两个的情况,如同一条纵线上存在三个“兵(卒)”,则以“前”、“中”、“后”区分; 如同一纵线上存在四个“兵(卒)”,则以“前”、“二”、“三”、“四”区分; 如同一纵线上存在五个“兵(卒)”,则以“前”、“二”、“三”、“四”、“五”区分。

您看看是否为这种情况,将“一”改成“前”应该就行了。如您认为应该适配“一”的记号表示,也欢迎pr~