gnuchess 5.07.1b

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

gnuchess 5.07.1b

Postby Michel » 21 Sep 2009, 16:15

I made an attempt to fix some of the cosmetical issue that gave gnuchess a "crappy" feel. I think I also fixed the time management code but I cannot explain why the previous code gave time losses. I cannot reproduce this on my computer.

Here are the fixes.

- The biggest change is that GNUChess now listens to input while searching.
This happens only in xboard mode since it messes up the display in
GNUChess's non xboard mode (anyone uses this still?). The input
polling code of GNUChess 5.07 is rather tricky. It uses a separate thread
with two locks and a condition variable. I hope I have not created
any deadlocks.
- As a consequence the ? (movenow) and quit commands now work at arbitrary times.
Thus xboard will no longer hang if you quit it while GNUChess is searching.
-No pondering if the plycounter is zero.
-The memory command is supported.
-"white" and "black" do not reset the engine when they are supposed to be noops.
-The number of moves to go till the next time control are kept up to date for both colors even when moves are forced.
This is important since the number of moves is used for the time budget.
- The output of the "post" command now follows the standard.
- sd works now
- GNUChess now distinguishes between illegal moves and illegal commands.
- The level command now supports the min:sec syntax.
- No more strange move reporting.
- Lots more debugging output suppressed.

Here is a test release. Only source code since I work on Linux and I do not know how to cross compile executables that use pthreads.

http://alpha.uhasselt.be/Research/Algeb ... s-release/
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby Jim Ablett » 21 Sep 2009, 20:21

Hi Michel,

Nice job :)

I've compiled the Windows x64 & win32 Intel compiler pgo executables
and also fixed the src to compile ok with Windows Intel/Msvc compilers

http://www.mediafire.com/?kjgzymogzon


Jim.
___________________________
http://jimablett.net63.net/
Jim Ablett
 
Posts: 721
Joined: 27 Sep 2004, 10:39
Location: Essex, England

Re: gnuchess 5.07.1b

Postby Michel » 21 Sep 2009, 21:44

Thanks a lot. That's a fast compile!

I left an annoying debug print in the output of the memory command (this has no practical consequences).

I'll wait a bit to see if there are other comments before posting a new version.
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby F.Huber » 22 Sep 2009, 00:28

Michel wrote:I'll wait a bit to see if there are other comments before posting a new version.

Ok, here is a comment: :wink:

Look at the analysis when GnuChess ponders, it seems to think about the opponents move but not about its own!?
No other GnuChess version (or any other engine) ever did this ...
User avatar
F.Huber
 
Posts: 205
Joined: 27 Sep 2004, 14:29
Location: Austria

Re: gnuchess 5.07.1b

Postby Michel » 22 Sep 2009, 07:20

Look at the analysis when GnuChess ponders, it seems to think about the opponents move but not about its own!?
No other GnuChess version (or any other engine) ever did this ...


Hmm. I'll have a look. I found some more bugs as well.
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby H.G.Muller » 22 Sep 2009, 09:26

F.Huber wrote:No other GnuChess version (or any other engine) ever did this ...

All my engines (that can ponder) think about the opponents move and not their own. There are many other that ponder this way too. Usually they give it away by showing the score with the opposite sign while pondering. (In Joker I invert the ponderscore befre printing, so it is less obvious.)
User avatar
H.G.Muller
 
Posts: 3314
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: gnuchess 5.07.1b

Postby F.Huber » 22 Sep 2009, 09:49

H.G.Muller wrote:
F.Huber wrote:No other GnuChess version (or any other engine) ever did this ...

All my engines (that can ponder) think about the opponents move and not their own.

Well, of course I was talking about normal chess engines ... :mrgreen:
User avatar
F.Huber
 
Posts: 205
Joined: 27 Sep 2004, 14:29
Location: Austria

Re: gnuchess 5.07.1b

Postby Michel » 22 Sep 2009, 10:19

Well, of course I was talking about normal chess engines ... :mrgreen:


I think the standard format for the PV during pondering is (ponder_move) rest of PV. GNUChess now does it this way.

I flipped the sign of the score reported by GNUChess during pondering so that it now always reports from the engine's
POV.
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby H.G.Muller » 22 Sep 2009, 12:12

F.Huber wrote:Well, of course I was talking about normal chess engines ... :mrgreen:

Then I wonder how you define normal. Beause it could very well be that most Chess engines actually ponder this way.
User avatar
H.G.Muller
 
Posts: 3314
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: gnuchess 5.07.1b

Postby Michel » 23 Sep 2009, 05:24

Ok I posted gnuchess 5.07.2b here

http://alpha.uhasselt.be/Research/Algeb ... s-release/

Various bug fixes. In particular there was a bug (not my doing!) which caused
gnuchess 4.07.2b to react very slowly to closing the xboard window. Remarkably
standard gnuchess did not suffer from this because the effect was undone by another bug.

TO Jim Ablett

I hope you can make a windows compile. To make your work easy I have tried to patch your sources
with the modifications 1b->2b. The result is here

http://alpha.uhasselt.be/Research/Algeb ... ja_pre.zip

Michel
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby Jim Ablett » 23 Sep 2009, 13:29

Michel wrote:Ok I posted gnuchess 5.07.2b here

http://alpha.uhasselt.be/Research/Algeb ... s-release/

Various bug fixes. In particular there was a bug (not my doing!) which caused
gnuchess 4.07.2b to react very slowly to closing the xboard window. Remarkably
standard gnuchess did not suffer from this because the effect was undone by another bug.

TO Jim Ablett

I hope you can make a windows compile. To make your work easy I have tried to patch your sources
with the modifications 1b->2b. The result is here

http://alpha.uhasselt.be/Research/Algeb ... ja_pre.zip

Michel


Here's the new Windows builds, x64 & win32 Intel compiler 11/10 pgo. No problems compiling the latest src.


http://www.mediafire.com/?zmzmqlzcwyg

Jim.
___________________________
http://jimablett.net63.net/
Jim Ablett
 
Posts: 721
Joined: 27 Sep 2004, 10:39
Location: Essex, England

Re: gnuchess 5.07.1b

Postby Michel » 23 Sep 2009, 16:09

Thank you very much!

Michel
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby Kirill Kryukov » 23 Sep 2009, 16:34

Thanks to Michel for fixing the horrible time usage bug! Also thanks to Jim for a fast 64-bit compile!

I started a gauntlet with GNU Chess 5.07.2b 64-bit JA. I'll wait for more games to finish before reporting about time losses (so far no time losses with this fixed version).
User avatar
Kirill Kryukov
 
Posts: 127
Joined: 21 Sep 2005, 09:56

Re: gnuchess 5.07.1b

Postby Kirill Kryukov » 24 Sep 2009, 04:39

OK, a gauntlet of 64 games is complete, with 7 time losses by GNU Chess 5.07.2 64-bit JA. So far it looks the same like before, which means losing on time has not been fixed yet.

Time allocation with external book is fixed. GNU Chess was playing with external GUI-controlled book in this gauntlet, playing at about the same rate through the game.
User avatar
Kirill Kryukov
 
Posts: 127
Joined: 21 Sep 2005, 09:56

Re: gnuchess 5.07.1b

Postby Michel » 24 Sep 2009, 06:25

So far it looks the same like before, which means losing on time has not been fixed yet.


Unfortunately I cannot reproduce this but I work primarily on Linux.

I am wondering if the cause is pthreads on windows....

Here is a version of GNUChess that does not use pthreads (so it is easy to compile with gcc on windows).

http://alpha.uhasselt.be/Research/Algeb ... b-npth.exe

Of course this will be slower than Jim's version since it has not been specially optimized.
But perhaps you can try it (I don't want to bother Jim with a new compile for every test version).
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby Kirill Kryukov » 24 Sep 2009, 07:18

Thanks, I will start a gauntlet with this version tonight.
User avatar
Kirill Kryukov
 
Posts: 127
Joined: 21 Sep 2005, 09:56

Re: gnuchess 5.07.1b

Postby Michel » 24 Sep 2009, 07:37

BTW Do you have a log of the time losses?

Is it GNUChess running out of time in the normal way or does it fail to start a game altogether?

Michel
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby Kirill Kryukov » 24 Sep 2009, 08:39

I don't have log, but I'll be happy to save log if you remind me how to configure GNU Chess to do it.

It starts to play every game, and plays normally until finally running out of time. In the evening I will check at which move the time losses happen, if it is near the time control boundary or not.
User avatar
Kirill Kryukov
 
Posts: 127
Joined: 21 Sep 2005, 09:56

Re: gnuchess 5.07.1b

Postby Michel » 24 Sep 2009, 09:45

I think I now observed a strange time loss as well....

EDIT: So do not bother testing this version!
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: gnuchess 5.07.1b

Postby Kirill Kryukov » 24 Sep 2009, 14:57

Good. Very nice that you are looking into it. Because time losses do leave a bit of "crappy feel" in your own words. It does not happen every game, about 1 in 10 roughly speaking, in my tests. (GNU Chess 5.07 now finished 2048 games in my tournament - 1024 with external book, 1024 without).
User avatar
Kirill Kryukov
 
Posts: 127
Joined: 21 Sep 2005, 09:56

Next

Return to Winboard and related Topics

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 11 guests