Illegal positions
Posted: 04 Oct 2005, 22:26
What do you think is the best way of handling obvious illegal positions?
(I'm talking about UCI here and positions that can't be played with normal chess rules)
In Arena it is possible to feed the engine with all sorts of positions. For instance the "wrong" side is in check or one King is missing etc.
Now, if you just ignore it or just give an error message, there will follow a "go" with unexpected and not meaningful results.
If you exit the engine, Arena doesn't know that the engine is out and has to be reloaded before it can be used again.
I do both in Alaric depending on situation but none of the alternatives are very good from a user perspective.
I would like a command from the engine to the GUI with the meaning "Illegal position, I'm out".
We can of course blame the GUI that let such positions pass but...
What do you do in these cases?
/Peter
(I'm talking about UCI here and positions that can't be played with normal chess rules)
In Arena it is possible to feed the engine with all sorts of positions. For instance the "wrong" side is in check or one King is missing etc.
Now, if you just ignore it or just give an error message, there will follow a "go" with unexpected and not meaningful results.
If you exit the engine, Arena doesn't know that the engine is out and has to be reloaded before it can be used again.
I do both in Alaric depending on situation but none of the alternatives are very good from a user perspective.
I would like a command from the engine to the GUI with the meaning "Illegal position, I'm out".
We can of course blame the GUI that let such positions pass but...
What do you do in these cases?
/Peter