I am toying around with a very basic chess analysis tool and was wondering if it is possible to have the chess engine pass the position that it is analyzing back to the GUI. If not, how do you ensure that the sequence of moves you have passed from the gui to the engine matches? It seems like a good idea to me that you would want to compare FEN strings or something from time to time so that you are confident the engine and GUI are on the same page. It seems to me that this is not part of the UCI spec though.
Thanks for any comments.
Getting position from Chess Engine
Re: Getting position from Chess Engine
Why wouldn't the engine and the GUI be on the same page? Can you provide an example of an engine misbehaving?
Re: Getting position from Chess Engine
I guess I can't really think of a good example where this would happen.
Re: Getting position from Chess Engine
I've never seen a GUI sending the wrong FEN when playing engine matches, and have never seen an engine misinterpreting a sent FEN when playing engine matches, so I guess it's more fruitful to make sure the feature works on both sides than implementing a "let's make sure" feature in both the GUI and the engines.