ml-research / liground

A free, open-source and modern Chess Variant Analysis GUI for the 21st century
https://ml-research.github.io/liground.github.io/
GNU Affero General Public License v3.0
108 stars 35 forks source link

Xiangqi FEN doesn‘t work BUG #187

Open lex312 opened 3 years ago

lex312 commented 3 years ago

I tried to copy and paste FEN from WinBoard / XBoard and also from https://www.chessdb.cn/query_en/ but it doesn’t work.

QueensGambit commented 3 years ago

The reason why it is not accepted is because the move counter is missing:

Given: rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w

Expected: rnbakabnr/9/1c5c1/p1p1p1p1p/9/9/P1P1P1P1P/1C5C1/9/RNBAKABNR w - - 0 1

However, in the current Fairy-Stockfish master this has already been fixed, and both given FEN are treated as valid:

I will be releasing a new ffish.js version shortly so this change can take effect.