Xboard adjudication: Checkmate but bare king

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

abulmo
Posts: 151
Joined: Thu Nov 12, 2009 6:31 pm

Xboard adjudication: Checkmate but bare king

Post by abulmo »

What is wrong with the following game:

Code: Select all

[Event "Computer Chess Game"]
[Site "pc24.home"]
[Date "2016.08.04"]
[Round "40"]
[White "Amoeba-1.0"]
[Black "Amoeba 1.3"]
[Result "1/2-1/2"]
[TimeControl "40/60"]
[Annotator "8. +0,47   8... -0,46"]

1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. O-O Bc5 5. c3 O-O 6. d4 Bb6 7. Re1 d6 8.
a4 {+0,47/14 1,1} a5 {-0,46/17 4} 9. Be3 {+0,33/15 1,8} Qe7 {-0,42/16 2,6}
10. Nbd2 {+0,37/15 1,4} exd4 {-0,49/17 1,0} 11. cxd4 {+0,55/15 0,8} Bg4
{-0,56/17 0,5} 12. d5 {+0,46/15 1,5} Nd4 {-0,40/17 1,2} 13. Nc4
{+0,18/16 1,9} Bxf3 {-0,25/18 0,1} 14. gxf3 {+0,31/17 1,5} Nxb5
{-0,33/20 1,6} 15. Bxb6 {+0,52/18 1,4} cxb6 {-0,33/20 0,4} 16. axb5
{+0,25/17 1,6} Nd7 {-0,30/19 0,3} 17. Qd4 {+0,29/16 1,4} f5 {-0,21/18 0,6}
18. Nxb6 {+0,20/15 1,9} Nxb6 {+0,20/18 2,0} 19. Qxb6 {+0,00/18 1,7} Qg5+
{+0,25/17 0,3} 20. Kh1 {-0,10/17 1,2} fxe4 {+0,36/18 4} 21. fxe4
{-0,25/18 2,0} Qf4 {+0,32/20 4} 22. Qe3 {-0,26/15 1,3} Qxf2 {+0,38/20 1,9}
23. Re2 {-0,33/17 0,6} Qxe3 {+0,67/19 1,2} 24. Rxe3 {-0,72/20 2,3} Rac8
{+0,57/21 0,3} 25. Re2 {-0,58/18 1,8} b6 {+0,89/21 3} 26. Rd1
{-1,02/20 1,9} Rc5 {+1,04/19 2,0} 27. Kg2 {-1,02/20 3} Rxb5 {+1,10/18 2,0}
28. Rd3 {-1,15/18 2,2} Rf7 {+1,11/18 1,6} 29. Rc3 {-1,15/17 1,3} h6
{+1,10/19 0,7} 30. Rc8+ {-1,15/17 2,0} Kh7 {+1,11/19 2,1} 31. Rc6
{-1,14/19 1,6} Rf6 {+1,13/21 1,5} 32. Rec2 {-1,14/19 1,8} Rb3
{+1,12/20 0,4} 33. Re2 {-1,18/17 1,4} b5 {+1,22/21 1,6} 34. Rc3
{-1,32/19 2,4} Rb4 {+1,25/20 0,1} 35. Rc8 {-1,31/18 2,4} a4 {+1,34/18 2,7}
36. Rc7 {-1,42/19 2,4} Rd4 {+1,34/19 2,2} 37. Re7 {-1,40/20 2,5} b4
{+1,47/21 2,8} 38. Re6 {-1,43/18 1,6} Kg6 {+1,51/22 1,2} 39. Re7
{-1,45/20 1,9} b3 {+1,60/22 1,1} 40. Rd7 {-1,49/21 4} Kh7 {+1,83/23 1,2}
41. Kg1 {-2,00/21 6} Rc4 {+1,82/23 0,1} 42. h3 {-2,28/21 5} Rg6+
{+1,82/23 0,1} 43. Kh2 {-1,75/22 3} Rd4 {+1,73/24 0,1} 44. Ra7 {-1,70/23 3}
Rd3 {+1,73/24 0,1} 45. Rxa4 {-1,70/24 4} Rgg3 {+1,73/24 0,1} 46. h4
{-1,69/22 4} Rh3+ {+1,72/21 1,2} 47. Kg2 {-1,67/21 2,8} Rxh4 {+1,72/22 0,1}
48. Ra6 {-1,68/22 2,8} Rg4+ {+1,72/23 0,1} 49. Kf2 {-1,68/22 2,9} Rg6
{+1,72/23 0,1} 50. Rb6 {-0,50/21 0,8} Rf6+ {+1,64/21 0,6} 51. Kg1
{-1,68/19 2,5} Kg8 {+1,66/20 0,1} 52. Rb8+ {-1,68/18 0,6} Kh7
{+1,64/20 2,2} 53. Rb7 {-1,68/21 1,5} Rg6+ {+1,65/18 1,6} 54. Kh2
{-1,68/19 0,7} Rgg3 {+1,62/21 2,2} 55. Rd7 {-1,48/19 0,6} Rge3
{+1,55/22 0,9} 56. Rg2 {-1,50/21 0,5} Rh3+ {+1,45/26 1,8} 57. Kg1
{-1,50/19 0,1} Rd1+ {+1,46/28 2,1} 58. Kf2 {-1,50/18 0,1} Rd2+
{+1,46/28 2,1} 59. Kg1 {-1,49/22 0,9} Rd1+ {+1,46/27 0,9} 60. Kf2
{-1,49/1 0,1} Rd2+ {+1,45/26 2,3} 61. Kg1 {-1,40/22 1,7} Rxg2+
{+1,46/25 0,7} 62. Kxg2 {-1,32/24 1,3} Re3 {+1,26/26 0,5} 63. Rxd6
{-1,32/23 1,1} Rxe4 {+1,27/26 1,2} 64. Kf3 {-1,32/22 1,4} Re5
{+0,00/24 1,3} 65. Rb6 {-1,52/21 0,7} Rxd5 {+1,50/20 1,9} 66. Rxb3
{-1,52/21 1,1} Kg6 {+1,49/21 1,7} 67. Kf4 {-1,52/21 0,7} Rf5+
{+1,50/19 1,4} 68. Kg4 {-1,53/21 1,0} h5+ {+1,49/21 2,1} 69. Kh3
{-1,70/21 0,7} Kg5 {+1,64/24 2,8} 70. Rg3+ {-1,70/23 0,5} Kh6
{+1,64/25 2,6} 71. b4 {-1,74/23 0,1} Rb5 {+1,79/29 3} 72. Rb3
{-1,83/25 0,4} g6 {+1,79/31 2,8} 73. Kg2 {-2,05/24 0,8} g5 {+1,89/25 3} 74.
Kh3 {-1,84/22 0,8} Kg6 {+1,89/27 2,2} 75. Kg3 {-1,89/23 0,8} Kf5
{+1,89/27 2,6} 76. Rb2 {-1,93/25 0,8} Ke4 {+2,28/28 4} 77. Rh2
{-1,98/26 0,9} g4 {+2,29/32 2,8} 78. Rf2 {-1,98/21 0,7} Kd3 {+2,29/26 4}
79. Rf6 {-2,23/24 1,0} Kc3 {+2,30/29 3} 80. Rf4 {-2,23/25 0,6} Kb3
{+2,30/33 4} 81. Re4 {-2,23/30 3} Ka4 {+2,30/33 0,1} 82. Re3 {-2,23/24 1,3}
Kxb4 {+0,00/31 0,2} 83. Re4+ {-2,23/23 4} Kb3 {+2,30/24 1,4} 84. Kh4
{-2,23/27 1,0} Kc3 {+2,30/27 0,3} 85. Re3+ {-2,23/25 1,0} Kd2
{+1,50/25 0,6} 86. Re4 {-2,23/26 1,4} Ra5 {+2,30/29 1,1} 87. Rc4
{-2,66/23 1,4} Ke3 {+2,30/22 1,2} 88. Rc3+ {-2,66/21 1,4} Ke2
{+2,30/24 0,1} 89. Rc2+ {-2,23/23 1,4} Kd3 {+2,30/25 0,3} 90. Rb2
{-2,56/24 1,4} Re5 {+2,48/22 1,4} 91. Ra2 {-2,67/23 4} Rd5 {+2,39/26 1,8}
92. Rg2 {-2,67/23 0,9} Re5 {+2,50/24 0,7} 93. Rg1 {-2,67/24 1,0} Kd2
{+2,61/23 1,9} 94. Ra1 {-2,67/26 2,2} Ke2 {+2,77/28 1,3} 95. Ra2+
{-2,67/28 3} Ke1 {+2,77/26 0,1} 96. Rc2 {-2,67/26 1,2} Re3 {+2,87/28 1,4}
97. Kxh5 {-3,19/27 3} g3 {+4,60/27 0,1} 98. Kg4 {-4,69/25 2,7} Kf1
{+5,34/24 2,0} 99. Rc1+ {-5,08/23 2,5} Kg2 {+5,39/24 2,0} 100. Ra1
{-5,48/24 0,9} Kh2 {+5,41/24 2,0} 101. Ra8 {-5,49/23 1,6} g2 {+5,48/28 0,1}
102. Rh8+ {-5,51/23 2,0} Kg1 {+5,48/29 0,1} 103. Rf8 {-5,51/22 1,1} Re4+
{+5,50/29 0,9} 104. Kf3 {-5,54/22 1,1} Rh4 {+5,51/27 2,3} 105. Rg8
{-5,54/25 1,5} Rh3+ {+5,60/29 2,2} 106. Ke4 {-5,56/21 0,9} Kf2
{+5,60/30 1,5} 107. Rf8+ {-5,55/21 0,8} Ke2 {+5,61/30 1,6} 108. Rg8
{-5,58/21 0,9} Rh4+ {+5,90/29 0,7} 109. Kd5 {-5,59/22 0,6} Kf3
{+5,92/27 1,7} 110. Rxg2 {-5,70/24 1,1} Kxg2 {+98,91/26 1,6} 111. Ke6
{-5,84/26 0,7} Rh5 {+99,69/23 2,2} 112. Kd6 {-99,62/25 0,9} Kf3
{+99,75/25 1,2} 113. Kc7 {-99,76/19 0,6} Rd5 {+99,79/21 0,2} 114. Kc6
{-99,16/18 1,0} Ke4 {+99,81/19 0,2} 115. Kb6 {-99,82/18 0,8} Kd4
{+99,83/17 0,1} 116. Kc6 {-99,84/16 0,1} Kc4 {+99,85/15 0,1} 117. Kb6
{-99,86/14 0,1} Rc5 {+99,87/13 0,1} 118. Ka6 {-99,88/12 0,1} Rb5
{+99,89/11 0,1} 119. Ka7 {-5,72/1 0,1} Kc5 {+99,91/9 0,1} 120. Ka6
{-99,92/8 0,1} Kc6 {+99,93/7 0,1} 121. Ka7 {-99,94/6 0,1} Ra5+
{+99,95/5 0,1} 122. Kb8 {-99,96/4 0,1} Ra6 {+99,97/4 0,1} 123. Kc8
{-99,98/1 0,1} Ra8# {+99,99/1 0,1}
{Xboard adjudication: Checkmate but bare king} 1/2-1/2
Black mates with a single rook a lone king, but xboard (4.9.0) decided the game is a draw.
Does anybody know about a tool to correct the results of a pgn file, so that I can get the right results? I just want to remove nonsense results like in the above game, but to keep other ones, including win/loss on time.
Richard
Norm Pollock
Posts: 1056
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: Xboard adjudication: Checkmate but bare king

Post by Norm Pollock »

Use "joined" by Andreas Stable. It detects incorrect results that are in conflict with a checkmate or stalemate (plus a lot of other things that are wrong) but it does not correct those incorrect results. You would have to use a text editor.

Also inform the authors of the bug.

http://www.mediafire.com/download/1vbl7 ... /joined.7z
User avatar
hgm
Posts: 27789
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Xboard adjudication: Checkmate but bare king

Post by hgm »

Indeed, the expansion to 66 piece types in version 4.9.0 activated a latent bug that held the piece number in a byte-size variable. Because this upped the code for the black King 131, which is interpreted as -125 in an 8-bit variable, which made the XBoard count the black King as a white piece. So when black mates with 2 pieces, like K+R, XBoard only sees one black piece, assumes blackmust have had a bare King, and corrects the result to draw.

This is fixed in XBoard 4.9.1 (and was in fact the reason the latter was released).
abulmo
Posts: 151
Joined: Thu Nov 12, 2009 6:31 pm

Re: Xboard adjudication: Checkmate but bare king

Post by abulmo »

Thanks; I will keep on my tournaments with the latest version.
My main problem is that the damage is already done... I am correcting the wrong results manually, which is not the safest way to be correct :-(
Richard