Polyglot 1.4 Update

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

Moderator: Ras

User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Polyglot 1.4 Update

Post by MikeB »

Polyglot 1.4 Updated Source and Mac Executable - should compile on Windows/Linux

From the updated read me:
...
Fabien Letouzey, 2006/01/16.

Updated 3/12/16 - Michael Byrne, 50 move rule is an option , turned on by default, add this to the polyglot section to disable the 50 move rule:

Code: Select all

[PolyGlot]

50MoveRule = false
By design , polyglot automatically enforces the 50 move rule, thus inhibiting one's ability to see how a cursed win would play out using 6 Man EGTB's under xBoard. Here is an example of the updated polyglot at work.
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: Polyglot 1.4 Update

Post by JoshPettus »

how is this an update? polyglot is at version 2.03. There is most likely years and years of updates not here. We should let old branches die and pull/code from the latest source.

http://hgm.nubati.net/cgi-bin/gitweb.cg ... eads/learn

What would be far more useful is a patch so the fix can be incorporated into the only active branch of polyglot.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Polyglot 1.4 Update

Post by MikeB »

JoshPettus wrote:how is this an update? polyglot is at version 2.03. There is most likely years and years of updates not here. We should let old branches die and pull/code from the latest source.

http://hgm.nubati.net/cgi-bin/gitweb.cg ... eads/learn

What would be far more useful is a patch so the fix can be incorporated into the only active branch of polyglot.
Searched and searched all over for the source. Now I know why. :) . Actually found it on our old friend Leo's site which is still being maintained.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Polyglot 1.4 Update

Post by MikeB »

JoshPettus wrote:how is this an update? polyglot is at version 2.03. There is most likely years and years of updates not here. We should let old branches die and pull/code from the latest source.

http://hgm.nubati.net/cgi-bin/gitweb.cg ... eads/learn

What would be far more useful is a patch so the fix can be incorporated into the only active branch of polyglot.
Polyglot 2.03 Updated

Patch:

Code: Select all

diff -rupN polyglot-2.03/game.c polyglot-2.03p/game.c
--- polyglot-2.03/game.c	2015-10-20 12:09:00.000000000 -0400
+++ polyglot-2.03p/game.c	2016-03-13 01:04:36.000000000 -0500
@@ -12,6 +12,7 @@
 #include "move_do.h"
 #include "move_legal.h"
 #include "piece.h"
+#include "option.h"
 #include "square.h"
 #include "util.h"
 
@@ -337,8 +338,10 @@ static int game_comp_status(const game_t
    }
 
    // 50-move rule
+	
 
-   if (board->ply_nb >= 100) return DRAW_FIFTY;
+
+  	 if (board->ply_nb >= 100  && option_get_bool(Option,"50MoveRule")) return DRAW_FIFTY;
 
    // position repetition
 
 
diff -rupN polyglot-2.03/option.c polyglot-2.03p/option.c
--- polyglot-2.03/option.c	2015-10-20 12:09:00.000000000 -0400
+++ polyglot-2.03p/option.c	2016-03-13 00:51:24.000000000 -0500
@@ -51,7 +51,8 @@ option_t DefaultOptions[] = {    
     { "HandleDraws",      "check","0","0",      "false"     , NULL,0,NNB,  PG|XBOARD|XBSEL}, 
     { "ContemptScore",    "spin","0","10000",   "30"        , NULL,0,NNB,  PG|XBOARD|XBSEL}, 
 
-    { "MateScore",        "spin","0","100000",  "0"         , NULL,0,NNB,  PG|XBOARD}, 
+    { "50MoveRule",       "check","0","0",      "true"      , NULL,0,NNB,  PG|XBOARD},
 
     { "Book",             "check","0","0",      "false"     , NULL,0,NNB,  PG|XBOARD|XBSEL|UCI}, 
     { "BookFile",         "file","0","0",       "book.bin"  , NULL,0,NNB,  PG|XBOARD|XBSEL|UCI}, 
I also needed to remove the "-noini" from this line in XBoardApp.Conf

-adapterCommand "polyglot -ec %fcp -ed %fd"

I'm sure HGM will come up with more elegant solution. 2.0.3 also fixes the engine settings which were not visible under 1.4.

Proof:

[pgn][Event "Computer Chess Game"]
[Site "Mac-Pro.local"]
[Date "2016.03.13"]
[Round "-"]
[White "Stockfish 031216"]
[Black "Stockfish 031216"]
[Result "1-0"]
[TimeControl "10+0"]
[FEN "6k1/5n2/8/8/8/5n2/1RK5/1N6 w - - 0 1"]
[SetUp "1"]
1. Kd3 {+123.53/1} N3g5 {-123.53/1 0.1} 2. Kd4 {+123.53/1 0.1} Ne6+
{-123.53/1 0.1} 3. Kd5 {+123.53/1 0.1} Nc7+ {-123.53/1 0.1} 4. Kc6
{+123.53/1 0.1} Ne6 {-123.53/1 0.1} 5. Kd7 {+123.53/1 0.1} Nfg5
{-123.53/1 0.1} 6. Kd6 {+123.53/1 0.1} Kg7 {-123.53/1 0.1} 7. Ke5
{+123.53/1 0.1} Nc5 {-123.53/1 0.1} 8. Kf5 {+123.53/1 0.1} Nge4
{-123.53/1 0.1} 9. Ra2 {+123.53/1 0.1} Nd6+ {-123.53/1 0.1} 10. Ke5
{+123.53/1 0.1} Nf7+ {-123.53/1 0.1} 11. Kd5 {+123.53/1 0.1} Nd3
{-123.53/1 0.1} 12. Kd4 {+123.53/1 0.1} Nb4 {-123.53/1 0.1} 13. Ra4
{+123.53/1 0.1} Nd8 {-123.53/1 0.1} 14. Kc4 {+123.53/1 0.1} Nbc6
{-123.53/1 0.1} 15. Kd5 {+123.53/14 0.2} Ne7+ {-123.53/1 0.1} 16. Kd6
{+123.53/1 0.1} Ng6 {-123.53/1 0.1} 17. Ra8 {+123.53/1 0.1} Nf7+
{-123.53/1 0.1} 18. Ke6 {+123.53/1 0.1} Nf8+ {-123.53/1 0.1} 19. Kd5
{+123.53/1 0.1} Ng6 {-123.53/1 0.1} 20. Ra6 {+123.53/1 0.1} Nf4+
{-123.53/1 0.1} 21. Kd4 {+123.53/1 0.1} Nd8 {-123.53/1 0.1} 22. Nc3
{+123.53/1 0.1} Nde6+ {-123.53/1 0.1} 23. Ke3 {+123.53/1 0.1} Ng2+
{-123.53/1 0.1} 24. Kf2 {+123.53/1 0.1} Ngf4 {-123.53/1 0.1} 25. Kf3
{+123.53/1 0.1} Kf7 {-123.53/1 0.1} 26. Ra7+ {+123.53/1 0.1} Kg6
{-123.53/17 0.2} 27. Ke4 {+123.53/1 0.1} Kg5 {-123.53/1 0.1} 28. Ke5
{+123.53/16 0.2} Nc5 {-123.53/1 0.1} 29. Ra5 {+123.53/1 0.1} Kg4
{-123.53/1 0.1} 30. Nd1 {+123.53/1 0.1} Ng6+ {-123.53/1 0.1} 31. Kd5
{+123.53/1 0.1} Nb3 {-123.53/1 0.1} 32. Ra2 {+123.53/1 0.1} Nf4+
{-123.53/1 0.1} 33. Ke5 {+123.53/1 0.1} Nc5 {-123.53/1 0.1} 34. Ne3+
{+123.53/1 0.1} Kf3 {-123.53/1 0.1} 35. Ra3 {+123.53/1 0.1} Ng6+
{-123.53/1 0.1} 36. Kd5 {+123.53/1 0.1} Nd3 {-123.53/1 0.1} 37. Kd4
{+123.53/1 0.1} Nde5 {-123.53/1 0.1} 38. Ra6 {+123.53/1 0.1} Nf4
{-123.53/1 0.1} 39. Nf1 {+123.53/1 0.1} Nf7 {-123.53/1 0.1} 40. Rf6
{+123.53/1 0.1} Ng5 {-123.53/1 0.1} 41. Ke5 {+123.53/1 0.1} Nh3
{-123.53/1 0.1} 42. Rf7 {+123.53/1 0.1} Ke2 {-123.53/1 0.1} 43. Ng3+
{+123.53/1 0.1} Ke3 {-123.53/1 0.1} 44. Nf5+ {+123.53/1 0.1} Kf3
{-123.53/1 0.1} 45. Nd6 {+123.53/1 0.1} Ke3 {-123.53/1 0.1} 46. Nc4+
{+123.53/1 0.1} Kd3 {-123.53/1 0.1} 47. Nb2+ {+123.53/1 0.1} Kc2
{-123.53/1 0.1} 48. Na4 {+123.53/1 0.1} Nd3+ {-123.53/1 0.1} 49. Kd4
{+123.53/1 0.1} Ng5 {-123.53/1 0.1} 50. Rd7 {+123.53/1 0.1} Ne6+
{-123.53/1 0.1} 51. Kd5 {+123.53/1 0.1} Ng5 {-123.53/1 0.1} 52. Rg7
{+123.53/1 0.1} Kb3 {-123.53/1 0.1} 53. Nb6 {+123.53/1 0.1} Nb4+
{-123.53/1 0.1} 54. Ke5 {+123.53/1 0.1} Nd3+ {-123.53/1 0.1} 55. Kf5
{+123.53/1 0.1} Nh3 {-123.53/1 0.1} 56. Rc7 {+123.53/1 0.1} Nb4
{-123.53/1 0.1} 57. Rc8 {+123.53/1 0.1} Nf2 {-123.53/1 0.1} 58. Nd7
{+123.53/1 0.1} Nc2 {-123.53/1 0.1} 59. Nc5+ {+123.53/1 0.1} Kb4
{-123.53/1 0.1} 60. Ke5 {+123.53/1 0.1} Ng4+ {-123.53/1 0.1} 61. Kf4
{+123.53/1 0.1} Nge3 {-123.53/1 0.1} 62. Nd3+ {+123.53/1 0.1} Kb3
{-123.53/1 0.1} 63. Nc1+ {+123.53/1 0.1} Kb4 {-123.53/1 0.1} 64. Ke4
{+123.53/1 0.1} Nc4 {-123.53/1 0.1} 65. Rg8 {+123.53/127 0.1} Nb6
{-123.53/1 0.1} 66. Rg2 {+123.53/1 0.1} Na3 {-123.53/1 0.1} 67. Rb2+
{+123.53/1 0.1} Kc5 {-123.53/1 0.1} 68. Nd3+ {+123.53/1 0.1} Kc6
{-123.53/1 0.1} 69. Rg2 {+123.53/1 0.1} Na4 {-123.53/1 0.1} 70. Rg5
{+123.53/1 0.1} Nc3+ {-123.53/1 0.1} 71. Ke5 {+123.53/1 0.1} Na4
{-123.53/1 0.1} 72. Ke6 {+123.53/1 0.1} Nb5 {-123.53/1 0.1} 73. Nb4+
{+123.53/1 0.1} Kb6 {-123.53/1 0.1} 74. Nd5+ {+123.53/1 0.1} Ka5
{-123.53/1 0.1} 75. Rh5 {+123.53/1 0.1} Nc5+ {-123.53/1 0.1} 76. Ke5
{+123.53/1 0.1} Nd3+ {-123.53/127 0.1} 77. Ke4 {+123.53/1 0.1} Nc5+
{-123.53/1 0.1} 78. Ke3 {+123.53/1 0.1} Na6 {-123.53/1 0.1} 79. Rh1
{+123.53/1 0.1} Nbc7 {-123.53/1 0.1} 80. Nf4 {+123.53/1 0.1} Kb4
{-123.53/1 0.1} 81. Kd4 {+123.53/1 0.1} Nb5+ {-123.53/1 0.1} 82. Ke5
{+123.53/1 0.1} Nc5 {-123.53/1 0.1} 83. Nd5+ {+123.53/1 0.1} Kb3
{-123.53/1 0.1} 84. Rh3+ {+123.53/1 0.1} Kc4 {-123.53/1 0.1} 85. Rh4+
{+123.53/1 0.1} Kd3 {-123.53/1 0.1} 86. Nf4+ {+123.53/1 0.1} Kd2
{-123.53/1 0.1} 87. Rh2+ {+123.53/1 0.1} Kc3 {-123.53/1 0.1} 88. Kd5
{+123.53/1 0.1} Kb4 {-123.53/1 0.1} 89. Rh4 {+123.53/1 0.1} Na4
{-123.53/1 0.1} 90. Nd3+ {+123.53/1 0.1} Kb3 {-123.53/1 0.1} 91. Rg4
{+123.53/1 0.1} Kc2 {-123.53/1 0.1} 92. Nf4 {+123.53/1 0.1} Kd2
{-123.53/1 0.1} 93. Rg7 {+123.53/1 0.1} Ke3 {-123.53/1 0.1} 94. Ng2+
{+123.53/1 0.1} Kd2 {-123.53/1 0.1} 95. Rh7 {+123.53/1 0.1} Nb2
{-123.53/1 0.1} 96. Rd7 {+123.53/1 0.1} Ke2 {-123.53/1 0.1} 97. Rb7
{+123.53/1 0.1} Nd1 {-123.53/1 0.1} 98. Kc5 {+123.53/1 0.1} Nbc3
{-123.53/1 0.1} 99. Kd4 {+123.53/1 0.1} Kd2 {-123.53/1 0.1} 100. Rd7
{+123.53/1 0.1} Ke2 {-123.53/1 0.1} 101. Nh4 {+123.53/1 0.1} Nb5+
{-123.53/1 0.1} 102. Kc4 {+123.53/1 0.1} Na3+ {-123.53/1 0.1} 103. Kb3
{+123.53/1 0.1} Nb1 {-123.53/1 0.1} 104. Nf5 {+123.53/1 0.1} Nf2
{-123.53/1 0.1} 105. Kc2 {+123.53/1 0.1} Na3+ {-123.53/1 0.1} 106. Kc3
{+123.53/1 0.1} Nb1+ {-123.53/1 0.1} 107. Kd4 {+123.53/1 0.1} Nd2
{-123.53/1 0.1} 108. Re7+ {+123.53/1 0.1} Kf3 {-123.53/1 0.1} 109. Rf7
{+123.53/1 0.1} Nh3 {-123.53/127 0.1} 110. Nd6+ {+123.53/1 0.1} Ke2
{-123.53/1 0.1} 111. Re7+ {+123.53/1 0.1} Kf3 {-123.53/1 0.1} 112. Re3+
{+123.53/1 0.1} Kg4 {-123.53/1 0.1} 113. Ra3 {+123.53/1 0.1} Nf1
{-123.53/1 0.1} 114. Ra4 {+123.53/127 0.1} Ng5 {-123.53/1 0.1} 115. Ke5+
{+123.53/1 0.1} Kf3 {-123.53/1 0.1} 116. Nf5 {+123.53/1 0.1} Nd2
{-123.53/1 0.1} 117. Ra3+ {+123.53/1 0.1} Kf2 {-123.53/1 0.1} 118. Ra2
{+123.53/1 0.1} Ke2 {-123.53/1 0.1} 119. Kd4 {+123.53/1 0.1} Ne4
{-123.53/1 0.1} 120. Ne3 {+123.53/127 0.1} Kf3 {-123.53/1 0.1} 121. Nd5
{+123.53/1 0.1} Nb3+ {-123.53/1 0.1} 122. Kc4 {+123.53/1 0.1} Nc1
{-123.53/1 0.1} 123. Ra3+ {+123.53/1 0.1} Kf2 {-123.53/1 0.1} 124. Ra8
{+123.53/1 0.1} Ne2 {-123.53/1 0.1} 125. Rg8 {+123.53/1 0.1} Ng1
{-123.53/1 0.1} 126. Kd4 {+123.53/1 0.1} Nd6 {-123.53/1 0.1} 127. Ke5
{+123.53/1 0.1} Nc4+ {-123.53/1 0.1} 128. Ke4 {+123.53/1 0.1} Nd6+
{-123.53/1 0.1} 129. Kf4 {+123.53/1 0.1} Ne2+ {-123.53/1 0.1} 130. Ke5
{+123.53/1 0.1} Nb5 {-123.53/1 0.1} 131. Rf8+ {+123.53/1 0.1} Ke1
{-123.53/1 0.1} 132. Rd8 {+123.53/1 0.1} Nbc3 {-123.53/1 0.1} 133. Ne3
{+123.53/127 0.1} Kf2 {-123.53/1 0.1} 134. Nc2 {+123.53/1 0.1} Nc1
{-123.53/1 0.1} 135. Rc8 {+123.53/1 0.1} Nb5 {-123.53/1 0.1} 136. Rb8
{+123.53/1 0.1} Nc3 {-123.53/1 0.1} 137. Rd8 {+123.53/1 0.1} Ke2
{-123.53/1 0.1} 138. Kd4 {+123.53/1 0.1} Nd1 {-123.53/1 0.1} 139. Na1
{+123.53/1 0.1} Kd2 {-123.53/1 0.1} 140. Ke4+ {+123.53/1 0.1} Ke2
{-123.53/1 0.1} 141. Rc8 {+123.53/1 0.1} Nf2+ {-123.53/1 0.1} 142. Kd4
{+123.53/1 0.1} Ncd3 {-123.53/1 0.1} 143. Nb3 {+123.53/1 0.1} Nf4
{-123.53/1 0.1} 144. Rg8 {+123.53/1 0.1} Kf3 {-123.53/1 0.1} 145. Nd2+
{+123.53/1 0.1} Ke2 {-123.53/1 0.1} 146. Nc4 {+123.53/1 0.1} Kf3
{-123.53/1 0.1} 147. Ne5+ {+123.53/1 0.1} Ke2 {-123.53/1 0.1} 148. Re8
{+123.53/1 0.1} N2h3 {-123.53/1 0.1} 149. Nc4+ {+123.53/1 0.1} Kf3
{-123.53/1 0.1} 150. Ra8 {+123.53/1 0.1} Ng5 {-123.53/1 0.1} 151. Ra3+
{+123.53/1 0.1} Ke2 {-123.53/1 0.1} 152. Ke5 {+123.53/1 0.1} Nd3+
{-123.53/1 0.1} 153. Kf5 {+123.53/1 0.1} Nh3 {-123.53/1 0.1} 154. Ra2+
{+123.53/1 0.1} Kf3 {-123.53/1 0.1} 155. Ra8 {+123.53/1 0.1} Nhf2
{-123.53/1 0.1} 156. Re8 {+123.53/1 0.1} Nd1 {-123.53/1 0.1} 157. Nd2+
{+123.53/1 0.1} Kf2 {-123.53/1 0.1} 158. Ke4 {+123.53/1 0.1} Nc1
{-123.53/1 0.1} 159. Nb1 {+123.53/1 0.1} Ke2 {-123.53/1 0.1} 160. Kf4+
{+123.53/1 0.1} Kf2 {-123.53/127 0.1} 161. Rd8 {+123.53/1 0.1} Ne2+
{-123.53/127 0.1} 162. Ke4 {+123.53/1 0.1} Ng3+ {-123.53/1 0.1} 163. Kd3
{+123.53/1 0.1} Ne3 {-123.53/1 0.1} 164. Nd2 {+123.53/1 0.1} Nef5
{-123.53/1 0.1} 165. Rh8 {+123.53/1 0.1} Ne3 {-123.53/1 0.1} 166. Rf8+
{+123.53/1 0.1} Nef5 {-123.53/1 0.1} 167. Rf7 {+123.53/1 0.1} Kg1
{-123.53/1 0.1} 168. Nf3+ {+123.53/127 0.1} Kg2 {-123.53/1 0.1} 169. Ne5
{+123.53/1 0.1} Nd6 {-123.53/127 0.1} 170. Ra7 {+123.53/127 0.1} Nh5
{-123.53/1 0.1} 171. Rd7 {+123.53/1 0.1} Nf5 {-123.53/1 0.1} 172. Rf7
{+123.53/1 0.1} Nhg3 {-123.53/127 0.1} 173. Rh7 {+123.53/1 0.1} Nf1
{-123.53/1 0.1} 174. Ra7 {+123.53/1 0.1} N1g3 {-123.53/1 0.1} 175. Ra2+
{+123.53/127 0.1} Kh3 {-123.53/1 0.1} 176. Ra4 {+123.53/1 0.1} Kh2
{-123.53/1 0.1} 177. Nf3+ {+123.53/127 0.1} Kg2 {-123.53/1 0.1} 178. Ng5
{+123.53/1 0.1} Nh5 {-123.53/1 0.1} 179. Ke4 {+123.53/1 0.1} Nfg3+
{-123.53/1 0.1} 180. Kd4 {+123.53/1 0.1} Nf4 {-123.53/1 0.1} 181. Ra3
{+123.53/1 0.1} Kf2 {-123.53/1 0.1} 182. Rb3 {+123.53/1 0.1} Nfe2+
{-123.53/1 0.1} 183. Kc4 {+123.53/1 0.1} Nf1 {-123.53/1 0.1} 184. Rf3+
{+123.53/1 0.1} Kg2 {-123.53/1 0.1} 185. Rf7 {+123.53/1 0.1} Neg3
{-123.53/1 0.1} 186. Kd3 {+123.53/1 0.1} Nh1 {-123.53/1 0.1} 187. Ne4
{+123.53/1 0.1} Nhg3 {-123.53/1 0.1} 188. Rg7 {+123.53/1 0.1} Kh3
{-123.53/127 0.1} 189. Ng5+ {+123.53/127 0.1} Kg4 {-123.53/1 0.1} 190. Ne6+
{+123.53/1 0.1} Kf5 {-123.53/1 0.1} 191. Nd4+ {+123.53/1 0.1} Kf6
{-123.53/1 0.1} 192. Rg4 {+123.53/127 0.1} Ke5 {-123.53/1 0.1} 193. Rg6
{+123.53/127 0.1} Kf4 {+123.53/1 0.1} 194. Rf6+ {-123.53/1 0.1} Kg5
{+123.53/127 0.1} 195. Rf2 {-123.53/1 0.1} Kh6 {+123.53/127 0.1} 196. Nf3
{-123.53/127 0.1} Kg6 {+123.53/1 0.1} 197. Ng1 {-123.53/1 0.1} Kg5
{+123.53/127 0.1} 198. Kd4 {-123.53/1 0.1} Kg6 {+123.53/1 0.1} 199. Rf4
{-123.53/1 0.1} Nh2 {+123.53/1 0.1} 200. Ke5 {-123.53/1 0.1} Kg5
{+123.53/1 0.1} 201. Nh3+ {-123.53/1 0.1} Kh5 {+123.53/1 0.1} 202. Nf2
{-123.53/1 0.1} Kg5 {+123.53/1 0.1} 203. Rb4 {-123.53/1 0.1} Nf3+
{+123.53/1 0.1} 204. Ke6 {-123.53/1 0.1} Nh2 {+123.53/1 0.1} 205. Nh3+
{-123.53/1 0.1} Kh5 {+123.53/1 0.1} 206. Ng1 {-123.53/1 0.1} Kg5
{+123.53/1 0.1} 207. Ra4 {-123.53/127 0.1} Nh5 {+123.53/1 0.1} 208. Nh3+
{-123.53/1 0.1} Kg6 {+123.53/1 0.1} 209. Rb4 {-123.53/1 0.1} Ng7+
{+123.53/1 0.1} 210. Ke5 {-123.53/1 0.1} Nf3+ {+123.53/1 0.1} 211. Kf4
{-123.53/1 0.1} Nd4 {+123.53/1 0.1} 212. Rb6+ {-123.53/1 0.1} Nge6+
{+123.53/1 0.1} 213. Ke5 {-123.53/1 0.1} Kf7 {+123.53/1 0.1} 214. Rb7+
{-123.53/1 0.1} Ke8 {+123.53/1 0.1} 215. Rh7 {-123.53/1 0.1} Nf8
{+123.53/1 0.1} 216. Rh8 {-123.53/1 0.1} Nc6+ {+123.53/127 0.1} 217. Kf6
{-123.53/1 0.1} Nb8 {+123.53/1 0.1} 218. Nf4 {-123.53/127 0.1} Nd7+
{+123.53/1 0.1} 219. Kg7 {-123.53/1 0.1} Ke7 {+123.53/1 0.1} 220. Rh6
{-123.53/1 0.1} Nc5 {+123.53/1 0.1} 221. Nd5+ {-123.53/1 0.1} Ke8
{+123.53/1 0.1} 222. Rh8 {-123.53/1 0.1} Ne6+ {+123.53/1 0.1} 223. Kf6
{-123.53/1 0.1} Nc5 {+123.53/127 0.1} 224. Nb6 {-123.53/1 0.1} Ne6
{+123.53/1 0.1} 225. Na4 {-123.53/1 0.1} Kd7 {+123.53/1 0.1} 226. Nc3
{-123.53/1 0.1} Ke8 {+123.53/1 0.1} 227. Ne4 {-123.53/1 0.1} Nf4
{+123.53/1 0.1} 228. Nc5 {-123.53/1 0.1} Ng6 {+123.53/1 0.1} 229. Rh5
{-123.53/1 0.1} Ne7 {+123.53/1 0.1} 230. Kg7 {-123.53/1 0.1} Nfg6
{+123.53/1 0.1} 231. Nd3 {-123.53/1 0.1} Nh4 {+123.53/1 0.1} 232. Ne5
{-123.53/1 0.1} Nhf5+ {+123.53/1 0.1} 233. Kf6 {-123.53/1 0.1} Nh6
{+123.53/1 0.1} 234. Ke6 {-123.53/1 0.1} Nef5 {+123.53/1 0.1} 235. Rh3
{-123.53/1 0.1} Kd8 {+123.53/1 0.1} 236. Kf6 {-123.53/1 0.1} Ne7
{+123.53/1 0.1} 237. Ra3 {-123.53/1 0.1} Nc8 {+123.53/127 0.1} 238. Ke6
{-123.53/1 0.1} Ne7 {+123.53/127 0.1} 239. Ra7 {-123.53/1 0.1} Nhf5
{+123.53/127 0.1} 240. Ra8+ {-123.53/1 0.1} Kc7 {+123.53/1 0.1} 241. Rf8
{-123.53/1 0.1} Kb6 {+123.53/127 0.1} 242. Ng6 {-123.53/1 0.1} Nd5
{+123.53/127 0.1} 243. Kxd5 {-123.53/26 1.1} Ne3+ {-123.53/27 1.3} 244. Ke4
{+123.53/28 0.7} Nc2 {-1000.18/34 2.2} 245. Rb8+ {+1000.16/29 0.5} Kc7
{-1000.13/36 1.6} 246. Rb2 {+1000.13/33 0.5} Ne1 {-1000.11/39 1.2} 247. Re2
{+1000.11/32 0.2} Nf3 {-1000.10/37 0.1} 248. Kxf3 {+1000.10/34 0.5} Kb6
{-1000.09/38 1.0} 249. Ke4 {+1000.09/33 0.5} Kc5 {-1000.08/37 0.2} 250. Ne5
{+1000.08/34 0.6} Kd6 {-1000.07/40 0.9} 251. Rc2 {+1000.07/34 0.2} Ke7
{-1000.06/41 0.1} 252. Rc6 {+1000.06/38 0.5} Kf8 {-1000.05/57 0.8} 253. Kf5
{+1000.05/48 0.4} Ke7 {-1000.04/65 0.3} 254. Kg6 {+1000.04/81 0.2} Ke8
{-1000.03/119 1.2} 255. Kf6 {+1000.03/127 0.1} Kd8 {-1000.02/127 0.1} 256.
Ke6 {+1000.02/127 0.1} Ke8 {-1000.01/1 0.1} 257. Rc8# {+1000.01/127 0.1}
{White mates} 1-0[/pgn]
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Polyglot 1.4 Update

Post by MikeB »

The link in the original post was deactivated, see the updated link posted subsequently in the same thread.

Polyglot 2.03 is now updated with an option to turn off the 50MoveRule. It's the same command as posted originally.
User avatar
hgm
Posts: 28468
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot 1.4 Update

Post by hgm »

MikeB wrote:I also needed to remove the "-noini" from this line in XBoardApp.Conf

-adapterCommand "polyglot -ec %fcp -ed %fd"

I'm sure HGM will come up with more elegant solution. 2.0.3 also fixes the engine settings which were not visible under 1.4.
From what I understand of Polyglot that should totally break it. For one, it should make Polyglot immediately exit for most people with the message that it could not find its default ini file (polyglot.ini in the current directory). For those people that by coincidence have such a file, it would always run the engine that was mentioned in that file, not the one that was mentioned in XBoard's-fcp option (or selected from its Load Engine dialog). Without -noini Polyglot would ignore the -ec and -ed options.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Polyglot 1.4 Update

Post by MikeB »

hgm wrote:
MikeB wrote:I also needed to remove the "-noini" from this line in XBoardApp.Conf

-adapterCommand "polyglot -ec %fcp -ed %fd"

I'm sure HGM will come up with more elegant solution. 2.0.3 also fixes the engine settings which were not visible under 1.4.
From what I understand of Polyglot that should totally break it. For one, it should make Polyglot immediately exit for most people with the message that it could not find its default ini file (polyglot.ini in the current directory). For those people that by coincidence have such a file, it would always run the engine that was mentioned in that file, not the one that was mentioned in XBoard's-fcp option (or selected from its Load Engine dialog). Without -noini Polyglot would ignore the -ec and -ed options.
I guess you learn something knew everyday. It does not break it. Engines load normally from the Load Engine dialog box. My instructions said to enter the command "50MoveRule = false" in the polyglot.ini file, so they would have the ini file

You do not need to specify the engine:

Code: Select all

[PolyGlot]

Book = false
BookFile = book.bin
50MoveRule = false
Log = true
LogFile = polyglot.log
Resign = false

[Engine]
User avatar
hgm
Posts: 28468
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot 1.4 Update

Post by hgm »

So you have to explicitly create a polyglot.ini file in the engine directory, even when you invoke Polyglot through the -fUCI option? (I suppose you do the latter, as otherwise the -adapterCommand would not be involved at all.) Or do you create the polyglot.ini file in the current directory?

If you do the latter, doesn't that mean that all UCI engines now would use that same polyglot.ini file? I.e. that you would run Fruit with option settings for Stockfish, etc.. Putting the polyglot.ini in the engine directory is in general not possible on Linux, as all engines would reside in the same directory, /usr/local/bin.

I don't see how this can work, even if Polyglot does not ignore the -ec and -ed arguments without -noini (as seems apparently the case): when you run with the -fUCI flag XBoard would pass the -fd argument to Polyglot (as specified per -adapterCommand), and would not use it to change directory to it before starting Polyglot. (If it did that, WinBoard would not be able to start polyglot.exe, as that resides in the same folder as winboard.exe there.) So Polyglot should be launched in the current directory, and then it would also look for its ini file there. and not in the directory specified by -fd. Which means all engines would share the same polyglot.ini file. Which you perhaps get away with if the [Engine] section is empty anyway, but would create big trouble if you wanted to set (or save) actual engine options.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Polyglot 1.4 Update

Post by MikeB »

Not like this has to be a permanent change - I just wanted to see a pv of one those long cursed wins and it is easy enough to switch it back and put the -noini back if there is an issue. Perhaps there is a way you could make a change to xBoard where you would be able to tell polyglot to ignore the 50 Move Rule with a checkbox.
User avatar
hgm
Posts: 28468
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot 1.4 Update

Post by hgm »

XBoard already does present Polyglot options as checkboxes / spins / strings etc., in the Engine Settings dialogs. Polyglot should declare this option to the GUI, however; the latter cannot smell whether you are running a Polyglot with a 50-move option or not. Polyglot only declares options that have the XBSEL flag set in the option table, and you did not set it for the option you added.

I am not sure if this option is of sufficient general interest to deserve being displayed in the Engine Settings, however. Actually I have my doubts whether it deserves to be in Polyglot at all.