Closed Fulmene closed 4 years ago
Screenshot from PlayOK
Our problem as @ianfab explained in Discord chat: "promoted pawns and met can not be distinguished in makruk FENs". The site is based on Fairy-Stockfish (server side) and chessgroundx (client side), and they are communicating via FEN.
Proposed solution as discussed:
Position::fen
to indicate promoted pieces with ~
even if not required (in contrast e.g. to crazyhouse).get_fen
of pyffish.I pushed a first version of the code that allows to generate makruk FENs with promoted pawns in Fairy-Stockfish. However, although the changes are small, they touch core parts of the board representation and could potentially completely break multiple variants, therefore it needs extensive testing before it can be merged.
In a real Makruk game, promoted pawns are represented by flipping the pawn piece over. Although they are functionally the same as the met, the discrepancy from the OTB game is quite jarring. Furthermore, they are also notated differently in game notation.
I'm willing to solve this issue myself, but I think I'll need some guidance on how each part of the code works.