UCI analysis and promotion

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

adams161
Posts: 626
Joined: Sun May 13, 2007 9:55 pm
Location: Bay Area, CA USA
Full name: Mike Adams

UCI analysis and promotion

Post by adams161 »

I"ve been not sending promotion moves to stockfish. Seems to work sort of ok i assume it defaults to a queen but it breaks my move now. Was wondering if anyone knew if there was any detail to this? does it just default to a queen or is behavior indeterminate?

Getting ready to release next day or two. This is not a stopper but i hope for the best presentation. do you just do e7e8q? upper lower case? need =q? Does it matter if it's just a queen? Sorry i know i can investigate more but the uci page is not super friendly. And release is very soon thought i'd hear some outside voices on this.

Mike
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: UCI analysis and promotion

Post by hgm »

Compliant move format is e7e8q in UCI. Anything else would give rise to undefined behavior.
adams161
Posts: 626
Joined: Sun May 13, 2007 9:55 pm
Location: Bay Area, CA USA
Full name: Mike Adams

Re: UCI analysis and promotion

Post by adams161 »

Our board view and pgn reading supports promotion to any piece. So lower case q, r, n, b? Sounds good. thanks. we are tracking the data i can add it in one line. Maybe works a bit better.

Mike