Author: Dann Corbit
Date: 12:35:20 02/27/06
Go up one level in this thread
On February 26, 2006 at 16:08:09, Howard Exner wrote:
>Would this honor go to the Knight? Do others here agree?
>Although I've witnessed underpromotion to a Rook and Bishop these are typically
>found in composed endings.
>
>Should a program have the knight as the second priority after the Queen?
>Is there a way to smartly implement underpromotion ?
>
>Finally, does anyone have a rook or bishop underpromotion theme from an actual
>game?
GnuChess' pawn promotion code goes Q,N,R,B for generation:
#define ADDPROMOTE(a,b) \
do { \
ADDMOVE (a, b, QUEENPRM); \
ADDMOVE (a, b, KNIGHTPRM); \
ADDMOVE (a, b, ROOKPRM); \
ADDMOVE (a, b, BISHOPPRM); \
} while (0)
Some other programs do the same thing. It is clearly the better way to do it.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.