In this position
http://webchess.freehostia.com/diag/che ... or3=000000
The game was adjudicated draw by xboard with this message:
Black wins on time but bare king
Miguel
PS: How do I insert the diagram that I show above in the post?
Moderators: hgm, Andres Valverde
/* [HGM] bare: don't allow bare King to win */
if((gameInfo.holdingsWidth == 0 || gameInfo.variant == VariantSuper || gameInfo.variant == VariantGreat)
&& result != GameIsDrawn)
{ int i, j, k=0, color = (result==WhiteWins ? (int)WhitePawn : (int)BlackPawn);
for(j=BOARD_LEFT; j<BOARD_RGHT; j++) for(i=0; i<BOARD_HEIGHT; i++) {
int p = (int)boards[forwardMostMove][i][j] - color;
if(p >= 0 && p <= (int)WhiteKing) k++;
}
if (appData.debugMode) {
fprintf(debugFP, "GE(%d, %s, %d) bare king k=%d color=%d\n",
result, resultDetails ? resultDetails : "(null)", whosays, k, color);
}
if(k <= 1) {
result = GameIsDrawn;
sprintf(buf, "%s but bare king", resultDetails);
resultDetails = buf;
}
}
Miguel A. Ballicora wrote:PS: How do I insert the diagram that I show above in the post?
Miguel A. Ballicora wrote:...
PS: How do I insert the diagram that I show above in the post?
Volker Pittlik wrote:Miguel A. Ballicora wrote:...
PS: How do I insert the diagram that I show above in the post?
http://www.open-aurec.com/wbforum/viewtopic.php?f=22&t=49351
Return to WinBoard development and bugfixing
Users browsing this forum: No registered users and 2 guests