I know about that but didn't really consider it a bug.  Yes, it would be
a little nicer if the illegal move check came first, but it's somewhat
messy since we don't really know what the move is (not completely)
until you say what you want to promote to.  In particular, in some
cases the chess engine is responsible for the legality checking.
Normally xboard just sends the engine your move and handles any errors
the engine may send back, but in this case, since we don't really know
the move for sure (you might even hit "cancel" on the promotion
dialog!), we'd have to put the engine in force mode, send it a promotion
to queen (say), then back that out and change it if you do something
else, then put the engine back into play-white or play-black mode.  I'm
not even sure that covers all the issues that would arise, such as
whether it unfairly takes pondering time away from the engine...

Thanks,
Tim

On Tue, 10 Jun 2008 17:00:38 -0700 (PDT), Andrew Schultz <[EMAIL PROTECTED]> 
wrote:
> Hi,
> 
> Found a small bug--maybe someone saw it before. If you start a new game and 
> try to move a pawn from a2 to a8, the promotion dialogue pops up before you 
> are informed it is an illegal move. In any case, it's an excuse to write to 
> say thanks for something that can let me look at a game quickly when I need a 
> short work break.
> 
> Also, thanks for the Vista fix. I have had/still have problems with Vista 
> with other software/websites(I am very close to re-installing XP on my home 
> machine) but am glad you made one less nuisance to deal with.
> 
>     Best,
>     Andrew Schultz


-- 
Tim Mann  [EMAIL PROTECTED]  http://tim-mann.org/


_______________________________________________
Bug-XBoard mailing list
Bug-XBoard@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-xboard

Reply via email to