Reinhard Scharnagl wrote:Why not use the sceme SMIRF does? Between engine and GUI castling moves are translated corresponding to the GUI input gesture which is: a) King moves to his castling target field, if this would cause at least two elementary steps, b) otherwise King moves to the involved Rook to signal a matching castling. That way even short range castling moves are distinct from King's single step moves. Castling moves from traditional chess also compatibly fit still into that scheme.
Hi Reinhard,
The internal representation is not important in this case, as long as it's not ambiguous. We only need to be careful with output (to engines and servers).
The only problem is lack of knowledge regarding XBoard's design, and I don't want to spend a lot of time on this software.
In other words, there is no chess-related problem.
Thanks,
Fabien.