Xboard 4.7.1 adjudication in Suicide Chess/Give-away Chess

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

Xboard 4.7.1 adjudication in Suicide Chess/Give-away Chess

Postby chessplayer » 15 Sep 2013, 07:47

Hello, I would like to explain what happens for me in Suicide Chess and Give-away Chess. I can't see where is the "Diag" button to post a diagram, I'm sorry.
Code: Select all
8/8/4p3/1p2P3/8/1P6/8/8 w - - 0 1
If you move b4 in Suicide Chess, it's a stalemate 1/2 1/2.
If you move b4 in Give-away Chess, black has to move and can't move.

and in this case
Code: Select all
7N/8/4p3/1p2P3/8/1P6/8/8 w - - 0 1
If you move b4 in Suicide Chess, black has to move and can't move.
If you move b4 in Give-away Chess, black has to move and can't move.

Is this expected?
Regards
Last edited by chessplayer on 20 Sep 2013, 17:00, edited 3 times in total.
chessplayer
 
Posts: 14
Joined: 14 Sep 2013, 15:13

Re: Xboard 4.7.1 adjudication in suicide chess/give-away che

Postby H.G.Muller » 15 Sep 2013, 08:29

No, this is a bug. Thank you for spotting it. WinBoard's MateTest routine distinguish multiple cases of stalemate (different from all checkmate cases, because the result message that would have to be printed is still "stalemate" rather than "checkmate", despite the result being 1-0 or 0-1). And in the code that decided what to do based on the result, the case where the side to move wins by stalemate was omitted, so that it was treated as the default case (where there is no mate of any kind).

Adding the missing case label makes WinBoard adjudicate all cases you mention that were not adjudicated as 0-1. I hope this is OK.

I noticed that there are several other places where WinBoard uses MateTest to detect game end other than the adjudication during play, in particular when loading games that do not state their own result, but simply end by running into end-of-file or the start of another game. Mainly to repair the game by adding a # sign and a result comment. In those cases (or when adjudication is switched off) the various win conditions of Suicide / Giveaway also seem untreated.

I will fix this in the next release.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Xboard 4.7.1 adjudication in suicide chess/give-away che

Postby chessplayer » 15 Sep 2013, 09:58

Thank you for your explanation and readiness.
chessplayer
 
Posts: 14
Joined: 14 Sep 2013, 15:13


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 6 guests