Skip to content

Commit 8948d42

Browse files
committed
Add comment about ignoring stalemate during initialization
See discussion here: http://www.talkchess.com/forum/viewtopic.php?p=500191#500191 For WDL it doesn't matter. For DTC it must be considered.
1 parent a301720 commit 8948d42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kpk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int kpkGenerate(void)
106106
for (int ix=0; ix<arrayLen(kpkTable[0]); ix++) {
107107
int wKing = wKingSquare(ix), wPawn = wPawnSquare(ix);
108108

109-
// Positions after winning pawn promotion
109+
// Positions after winning pawn promotion (we can ignore stalemate here)
110110
if (rank(wPawn) == rank8 && wKing != wPawn) {
111111
uint64_t lost = ~allKing(bit(wKing)) & ~bit(wKing) & ~bit(wPawn);
112112
if (dist(wKing, wPawn) > 1)

0 commit comments

Comments
 (0)